public class LifecycleFactoryImpl
extends javax.faces.lifecycle.LifecycleFactory
LifecycleFactory| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,javax.faces.lifecycle.Lifecycle> |
lifecycleMap |
| Constructor and Description |
|---|
LifecycleFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycle(String lifecycleId,
javax.faces.lifecycle.Lifecycle lifecycle)
Register a new
Lifecycle instance, associated with
the specified lifecycleId, to be supported by this
LifecycleFactory. |
javax.faces.lifecycle.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. |
protected ConcurrentHashMap<String,javax.faces.lifecycle.Lifecycle> lifecycleMap
public void addLifecycle(String lifecycleId, javax.faces.lifecycle.Lifecycle lifecycle)
javax.faces.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 javax.faces.lifecycle.LifecycleFactorylifecycleId - Identifier of the new Lifecyclelifecycle - Lifecycle instance that we are registeringpublic javax.faces.lifecycle.Lifecycle getLifecycle(String lifecycleId) throws javax.faces.FacesException
javax.faces.lifecycle.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 javax.faces.lifecycle.LifecycleFactorylifecycleId - Lifecycle identifier of the requested
Lifecycle instanceLifecycle instancejavax.faces.FacesExceptionpublic Iterator<String> getLifecycleIds()
javax.faces.lifecycle.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 javax.faces.lifecycle.LifecycleFactoryIterator over the set of lifecycle
identifiers supported by this factoryCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.