com.ibm.commerce.context.base

Interface BusinessContextFactory

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • createContextSPI

        ContextSPI createContextSPI(ActivityToken token,
                                    com.ibm.commerce.component.contextservice.ActivityData initData)
        Creates a service provider interface object for the context associated with a given activity and initialization data. As there could be more than one context implementation, uses the initialization data to determine the implementation class to use. The service provider interface object is retrieved from the pool of context service provider interface objects.
        Parameters:
        token - the token of the activity that the context is to be associated with
        initData - the data that will determine which implementation class to use. If the factory class is not attribute-based, this parameter is ignored.
        Returns:
        the service provider interface object
      • destroyContextSPI

        void destroyContextSPI(ContextSPI ctxSPI)
        Returns a given context service provider interface object to the pool.
        Parameters:
        ctxSPI - the service provider interface object to be returned