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.LifecycleFactory
Register 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.LifecycleFactory
lifecycleId
- Identifier of the new Lifecycle
lifecycle
- Lifecycle
instance that we are registeringpublic javax.faces.lifecycle.Lifecycle getLifecycle(String lifecycleId) throws javax.faces.FacesException
javax.faces.lifecycle.LifecycleFactory
Create (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.LifecycleFactory
lifecycleId
- Lifecycle identifier of the requested
Lifecycle
instanceLifecycle
instancejavax.faces.FacesException
public Iterator<String> getLifecycleIds()
javax.faces.lifecycle.LifecycleFactory
Return 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.LifecycleFactory
Iterator
over the set of lifecycle
identifiers supported by this factoryCopyright © 2010–2021 JBoss by Red Hat. All rights reserved.