ExternalContextFactory
is a factory object that creates
(if needed) and returns new ExternalContext instances, initialized
for the processing of the specified request and response objects.
There must be one ExternalContextFactory instance per web
application that is utilizing JavaServer Faces. This instance can be
acquired, in a portable manner, by calling:
ExternalContextFactory factory = (ExternalContextFactory) FactoryFinder.getFactory(FactoryFinder.EXTERNAL_CONTEXT_FACTORY);
Usage: extend this class and push the implementation being wrapped to the
constructor and use getWrapped to access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private ExternalContextFactory |
| Access | Constructor and Description |
|---|---|
| public | ExternalContextFactory()
Deprecated
Use the other constructor taking the implementation being wrapped.
|
| public | ExternalContextFactory(ExternalContextFactory
The implementation being wrapped. wrapped)If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ExternalContext | Returns: the instance ofExternalContext.In servlet environments, the
context, Object ServletContext that is associated with this web
applicationIn servlet environments, the
request, Object ServletRequest that is to be processedIn servlet environments, the
response)ServletResponse that is to be processedCreate (if needed)
and return an |
| public ExternalContextFactory | getWrapped()
Implements javax. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. |
| wrapped | back to summary |
|---|---|
| private ExternalContextFactory wrapped | |
| ExternalContextFactory | back to summary |
|---|---|
| public ExternalContextFactory()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| ExternalContextFactory | back to summary |
|---|---|
| public ExternalContextFactory(ExternalContextFactory wrapped) If this factory has been decorated,
the implementation doing the decorating should push the implementation being wrapped to this constructor.
The
| |
| getExternalContext | back to summary |
|---|---|
| public abstract ExternalContext getExternalContext(Object context, Object request, Object response) throws FacesException Create (if needed)
and return an
| |
| getWrapped | back to summary |
|---|---|
| public ExternalContextFactory getWrapped() Implements javax. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
| |