public interface SpacesContextFactory
SpacesContextFactory is a factory object that creates
(if needed) and returns new SpacesContext
instances, initialized
for the processing of the specified request and response objects.
This instance can be acquired, in a portable manner, by calling:
SpacesContextFactory factory = (SpacesContextFactory) FactoryFinder.getFactory(SpacesContextFactory.class.getCanonicalName());
Modifier and Type | Method and Description |
---|---|
SpacesContext |
getSpacesContext()
Create (if needed) and return a
SpacesContext instance
that is initialized for the processing of the specified request
and response objects, utilizing the specified instance, for this
web application. |
SpacesContext getSpacesContext()
Create (if needed) and return a SpacesContext
instance
that is initialized for the processing of the specified request
and response objects, utilizing the specified instance, for this
web application.
The implementation of this method must ensure that calls to the
getCurrentInstance()
method of SpacesContext
,
from the same thread that called this method, will return the same
SpacesContext
instance until the release()
method is called on that instance.
java.lang.NullPointerException
- if any of the parameters
are null