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