LifecycleFactory is
a factory object that creates (if needed) and returns Lifecycle instances. Implementations of JavaServer Faces must
provide at least a default implementation of Lifecycle.
Advanced implementations (or external third party libraries) MAY
provide additional Lifecycle implementations (keyed by
lifecycle identifiers) for performing different types of request
processing on a per-request basis.
There must be one LifecycleFactory instance per web
application that is utilizing JavaServer Faces. This instance can be
acquired, in a portable manner, by calling:
LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_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 |
|---|---|
| public static final String | DEFAULT_LIFECYCLE
The lifecycle identifier for the default |
| private LifecycleFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LifecycleFactory(LifecycleFactory
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 void | |
| public abstract Lifecycle | Returns: theLifecycle instanceLifecycle identifier of the requested
lifecycleId)Lifecycle instanceCreate (if needed) and return a |
| public abstract Iterator | Returns: anIterator over the set of lifecycle
identifiers supported by this factoryReturn an |
| public LifecycleFactory | 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. |
| DEFAULT_LIFECYCLE | back to summary |
|---|---|
| public static final String DEFAULT_LIFECYCLE The lifecycle identifier for the default | |
| wrapped | back to summary |
|---|---|
| private LifecycleFactory wrapped | |
| LifecycleFactory | back to summary |
|---|---|
| public LifecycleFactory()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| LifecycleFactory | back to summary |
|---|---|
| public LifecycleFactory(LifecycleFactory wrapped) If this factory has been decorated,
the implementation doing the decorating should push the implementation being wrapped to this constructor.
The
| |
| addLifecycle | back to summary |
|---|---|
| public abstract void addLifecycle(String lifecycleId, Lifecycle lifecycle) Register a new
| |
| getLifecycle | back to summary |
|---|---|
| public abstract Lifecycle getLifecycle(String lifecycleId) Create (if needed) and return a Each call to
| |
| getLifecycleIds | back to summary |
|---|---|
| public abstract Iterator Return an | |
| getWrapped | back to summary |
|---|---|
| public LifecycleFactory 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.
| |