public abstract class AbstractBusinessContextFactory extends java.lang.Object implements BusinessContextFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AbstractBusinessContextFactory()
The do-nothing zero-argument constructor.
|
AbstractBusinessContextFactory(java.util.List paramList)
This method constructs an
AbstractBusinessContextFactory object with the given parameters. |
Modifier and Type | Method and Description |
---|---|
ContextSPI |
createContextSPI(ActivityToken token,
com.ibm.commerce.component.contextservice.ActivityData initData)
This method creates a service provider interface object for the context associated
with a given activity and initialization data.
|
void |
destroyContextSPI(ContextSPI ctxSPI)
This method returns a given context service provider interface object to the pool.
|
public static final java.lang.String COPYRIGHT
public AbstractBusinessContextFactory()
public AbstractBusinessContextFactory(java.util.List paramList)
AbstractBusinessContextFactory
object with the given parameters.paramList
- the list of parameters for this factorypublic ContextSPI createContextSPI(ActivityToken token, com.ibm.commerce.component.contextservice.ActivityData initData)
getContextSPIImplClassname(ActivityToken, ActivityData)
method.
The getContextSPIImplClassname(ActivityToken, ActivityData) method
uses the initialization data to determine which implementation class to use.
Once the appropriate implementation class is known, this method calls the
createContextSPIClass(String)
method to retrieve its instance.createContextSPI
in interface BusinessContextFactory
token
- the token of the activity that the context is to be associated withinitData
- the data that will determine which implementation class to use.
If the factory class is not attribute-based, this parameter is ignored.public void destroyContextSPI(ContextSPI ctxSPI)
destroyContextSPI
in interface BusinessContextFactory
ctxSPI
- the service provider interface object to be returned