Top Description Fields Constructors Methods
com.sun.faces.lifecycle

public Class LifecycleFactoryImpl

extends LifecycleFactory
Class Inheritance
Imports
java.util.Iterator, java.util.concurrent.ConcurrentHashMap, java.util.logging.Level, .Logger, javax.faces.FacesException, javax.faces.context.FacesContext, javax.faces.lifecycle.Lifecycle, .LifecycleFactory, com.sun.faces.util.FacesLogger, .MessageUtils

LifecycleFactoryImpl is the stock implementation of Lifecycle in the JSF RI.

See Also
javax.faces.lifecycle.LifecycleFactory

Field Summary

Modifier and TypeField and Description
protected ConcurrentHashMap<String, Lifecycle>
private static Logger
Inherited from javax.faces.lifecycle.LifecycleFactory:
DEFAULT_LIFECYCLE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLifecycle(String
Identifier of the new Lifecycle
lifecycleId
,
Lifecycle
Lifecycle instance that we are registering
lifecycle
)

Implements abstract javax.faces.lifecycle.LifecycleFactory.addLifecycle.

Register a new Lifecycle instance, associated with the specified lifecycleId, to be supported by this LifecycleFactory.

public Lifecycle
getLifecycle(String
Lifecycle identifier of the requested Lifecycle instance
lifecycleId
)

Implements abstract javax.faces.lifecycle.LifecycleFactory.getLifecycle.

Create (if needed) and return a Lifecycle instance for the specified lifecycle identifier.

public Iterator<String>
getLifecycleIds()

Implements abstract javax.faces.lifecycle.LifecycleFactory.getLifecycleIds.

Return an Iterator over the set of lifecycle identifiers supported by this factory.

Inherited from javax.faces.lifecycle.LifecycleFactory:
getWrapped

Field Detail

lifecycleMapback to summary
protected ConcurrentHashMap<String, Lifecycle> lifecycleMap
LOGGERback to summary
private static Logger LOGGER

Constructor Detail

LifecycleFactoryImplback to summary
public LifecycleFactoryImpl()

Method Detail

addLifecycleback to summary
public void addLifecycle(String lifecycleId, Lifecycle lifecycle)

Implements abstract javax.faces.lifecycle.LifecycleFactory.addLifecycle.

Doc from javax.faces.lifecycle.LifecycleFactory.addLifecycle.

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.

Parameters
lifecycleId:String

Identifier of the new Lifecycle

lifecycle:Lifecycle

Lifecycle instance that we are registering

Annotations
@Override
getLifecycleback to summary
public Lifecycle getLifecycle(String lifecycleId) throws FacesException

Implements abstract javax.faces.lifecycle.LifecycleFactory.getLifecycle.

Doc from javax.faces.lifecycle.LifecycleFactory.getLifecycle.

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.

Parameters
lifecycleId:String

Lifecycle identifier of the requested Lifecycle instance

Returns:Lifecycle

the Lifecycle instance

Annotations
@Override
getLifecycleIdsback to summary
public Iterator<String> getLifecycleIds()

Implements abstract javax.faces.lifecycle.LifecycleFactory.getLifecycleIds.

Doc from javax.faces.lifecycle.LifecycleFactory.getLifecycleIds.

Return an Iterator over the set of lifecycle identifiers supported by this factory. This set must include the value specified by LifecycleFactory.DEFAULT_LIFECYCLE.

Returns:Iterator<String>

an Iterator over the set of lifecycle identifiers supported by this factory

Annotations
@Override