Class DefaultContextFactory<T>

  • All Implemented Interfaces:
    ContextFactory<T>

    public class DefaultContextFactory<T>
    extends Object
    implements ContextFactory<T>
    A basic concrete implementation of the ContextFactory interface.
    • Constructor Detail

      • DefaultContextFactory

        protected DefaultContextFactory()
    • Method Detail

      • createContext

        public Context<T> createContext​(Object contextId)
        Description copied from interface: ContextFactory
        Creates a new Context with the given identifier.
        Specified by:
        createContext in interface ContextFactory<T>
        Parameters:
        contextId - the identifier to associate with the created Context object.
        Returns:
        a new Context object.