Class LifecycleFactoryImpl
- All Implemented Interfaces:
FacesWrapper<LifecycleFactory>
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.faces.lifecycle.LifecycleFactory
DEFAULT_LIFECYCLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycle(String lifecycleId, Lifecycle lifecycle) Register a newLifecycleinstance, associated with the specifiedlifecycleId, to be supported by thisLifecycleFactory.getLifecycle(String lifecycleId) Create (if needed) and return aLifecycleinstance for the specified lifecycle identifier.Return anIteratorover the set of lifecycle identifiers supported by this factory.Methods inherited from class jakarta.faces.lifecycle.LifecycleFactory
getWrapped
-
Field Details
-
lifecycleMap
-
-
Constructor Details
-
LifecycleFactoryImpl
public LifecycleFactoryImpl()
-
-
Method Details
-
addLifecycle
Description copied from class:LifecycleFactoryRegister a new
Lifecycleinstance, associated with the specifiedlifecycleId, to be supported by thisLifecycleFactory. This method may be called at any time, and makes the correspondingLifecycleinstance available throughout the remaining lifetime of this web application.- Specified by:
addLifecyclein classLifecycleFactory- Parameters:
lifecycleId- Identifier of the newLifecyclelifecycle-Lifecycleinstance that we are registering
-
getLifecycle
Description copied from class:LifecycleFactoryCreate (if needed) and return a
Lifecycleinstance for the specified lifecycle identifier. The set of available lifecycle identifiers is available via thegetLifecycleIds()method.Each call to
getLifecycle()for the samelifecycleId, from within the same web application, must return the sameLifecycleinstance.- Specified by:
getLifecyclein classLifecycleFactory- Parameters:
lifecycleId- Lifecycle identifier of the requestedLifecycleinstance- Returns:
- the
Lifecycleinstance - Throws:
FacesException
-
getLifecycleIds
Description copied from class:LifecycleFactoryReturn an
Iteratorover the set of lifecycle identifiers supported by this factory. This set must include the value specified byLifecycleFactory.DEFAULT_LIFECYCLE.- Specified by:
getLifecycleIdsin classLifecycleFactory- Returns:
- an
Iteratorover the set of lifecycle identifiers supported by this factory
-