public class LifecycleFactoryImpl extends LifecycleFactory
LifecycleFactory| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,Lifecycle> |
lifecycleMap |
DEFAULT_LIFECYCLE| Constructor and Description |
|---|
LifecycleFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycle(String lifecycleId,
Lifecycle lifecycle)
Register a new
Lifecycle instance, associated with
the specified lifecycleId, to be supported by this
LifecycleFactory. |
Lifecycle |
getLifecycle(String lifecycleId)
Create (if needed) and return a
Lifecycle instance
for the specified lifecycle identifier. |
Iterator<String> |
getLifecycleIds()
Return an
Iterator over the set of lifecycle
identifiers supported by this factory. |
getWrappedprotected ConcurrentHashMap<String,Lifecycle> lifecycleMap
public void addLifecycle(String lifecycleId, Lifecycle lifecycle)
LifecycleFactoryRegister a new Lifecycle instance, associated with
the specified lifecycleId, to be supported by this
LifecycleFactory. This method may be called at
any time, and makes the corresponding Lifecycle instance
available throughout the remaining lifetime of this web application.
addLifecycle in class LifecycleFactorylifecycleId - Identifier of the new Lifecyclelifecycle - Lifecycle instance that we are registeringpublic Lifecycle getLifecycle(String lifecycleId) throws FacesException
LifecycleFactoryCreate (if needed) and return a Lifecycle instance
for the specified lifecycle identifier. The set of available
lifecycle identifiers is available via the
getLifecycleIds() method.
Each call to getLifecycle() for the same
lifecycleId, from within the same web application,
must return the same Lifecycle instance.
getLifecycle in class LifecycleFactorylifecycleId - Lifecycle identifier of the requested
Lifecycle instanceLifecycle instanceFacesExceptionpublic Iterator<String> getLifecycleIds()
LifecycleFactoryReturn an Iterator over the set of lifecycle
identifiers supported by this factory. This set must include
the value specified by LifecycleFactory.DEFAULT_LIFECYCLE.
getLifecycleIds in class LifecycleFactoryIterator over the set of lifecycle
identifiers supported by this factoryCopyright © 1997–2019 Eclipse Foundation. All rights reserved.