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. |
getWrapped
protected ConcurrentHashMap<String,Lifecycle> lifecycleMap
public void addLifecycle(String lifecycleId, Lifecycle 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 LifecycleFactory
lifecycleId
- Identifier of the new Lifecycle
lifecycle
- Lifecycle
instance that we are registeringpublic Lifecycle getLifecycle(String lifecycleId) throws FacesException
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 LifecycleFactory
lifecycleId
- Lifecycle identifier of the requested
Lifecycle
instanceLifecycle
instanceFacesException
public Iterator<String> getLifecycleIds()
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 LifecycleFactory
Iterator
over the set of lifecycle
identifiers supported by this factoryComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.