ApplicationFactory is a factory object that
creates (if needed) and returns Application instances. Implementations of Jakarta Faces must provide
at least a default implementation of Application.
There must be one ApplicationFactory instance per web application that is utilizing Jakarta Faces.
This instance can be acquired, in a portable manner, by calling:
ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_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 ApplicationFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ApplicationFactory(ApplicationFactory
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 Application | Returns: the application.
Create (if needed) and return an |
| public ApplicationFactory | getWrapped()
Implements jakarta. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. |
| public abstract void | setApplication(Application
The replacement application)Application instance
Replace the |
| wrapped | back to summary |
|---|---|
| private ApplicationFactory wrapped | |
| ApplicationFactory | back to summary |
|---|---|
| public ApplicationFactory()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| ApplicationFactory | back to summary |
|---|---|
| public ApplicationFactory(ApplicationFactory wrapped)
If this factory has been decorated, the implementation doing the decorating should push the implementation being
wrapped to this constructor. The
| |
| getApplication | back to summary |
|---|---|
| public abstract Application getApplication()
Create (if needed) and return an
| |
| getWrapped | back to summary |
|---|---|
| public ApplicationFactory getWrapped() Implements jakarta. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
| |
| setApplication | back to summary |
|---|---|
| public abstract void setApplication(Application application)
Replace the
| |