Class RootContext

  • All Implemented Interfaces:
    Context

    public final class RootContext
    extends AbstractContext
    A Context which has an a globally unique ID but no parent. All request context chains are terminated by a RootContext as the top-most context.
    • Constructor Detail

      • RootContext

        public RootContext​(String id)
        Construct a new RootContext with the given id (uniqueness is not verified).
        Parameters:
        id - context identifier (uniqueness is not verified, cannot be null)
      • RootContext

        public RootContext​(JsonValue savedContext,
                           ClassLoader classLoader)
        Restore from JSON representation.
        Parameters:
        savedContext - The JSON representation from which this context's attributes should be parsed.
        classLoader - The ClassLoader which can properly resolve the persisted class-name.