Class ChildContextLookup<ParentContext extends BaseContext,​ChildContext extends BaseContext>

    • Field Detail

      • autocreate

        private boolean autocreate
        Whether the child context should be created if it doesn't exist. This requires that the child context has a no-arg constructor.
    • Constructor Detail

      • ChildContextLookup

        public ChildContextLookup​(@Nonnull @ParameterName(name="type")
                                  Class<ChildContext> type)
        Constructor.

        Equivalent to calling the two-parameter constructor with false.

        Parameters:
        type - child context type to look up
      • ChildContextLookup

        public ChildContextLookup​(@Nonnull @ParameterName(name="type")
                                  Class<ChildContext> type,
                                  @ParameterName(name="createContext")
                                  boolean createContext)
        Constructor.
        Parameters:
        type - child context type to look up
        createContext - whether to create the child context if it does not exist