JSF-Spring

de.mindmatters.faces.lifecycle
Class LifecycleFactoryImpl

java.lang.Object
  extended by javax.faces.lifecycle.LifecycleFactory
      extended by de.mindmatters.faces.lifecycle.LifecycleFactoryImpl

public class LifecycleFactoryImpl
extends LifecycleFactory

LifecycleFactory is a factory object that creates (if needed) and returns Lifecycle instances. This implementation delivers a default lifecycle for the lifecycle-id LifecycleFactory.DEFAULT_LIFECYCLE and a modified one for the key LifecycleImpl.JSF_SPRING_LIFECYCLE_ID (which will be used for integration purposes of SpringMVC).

Author:
Andreas Kuhrwahl
See Also:
LifecycleImpl

Field Summary
 
Fields inherited from class javax.faces.lifecycle.LifecycleFactory
DEFAULT_LIFECYCLE
 
Constructor Summary
LifecycleFactoryImpl()
          Default Constructor adding the default lifecycle to this factory.
 
Method Summary
 void addLifecycle(java.lang.String lifecycleId, Lifecycle lifecycle)
          
protected  Lifecycle createDefaultLifecycle()
          Factory method for creating the default lifecycle.
 Lifecycle getLifecycle(java.lang.String lifecycleId)
          
 java.util.Iterator getLifecycleIds()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleFactoryImpl

public LifecycleFactoryImpl()
Default Constructor adding the default lifecycle to this factory.

Method Detail

addLifecycle

public final void addLifecycle(java.lang.String lifecycleId,
                               Lifecycle lifecycle)

Specified by:
addLifecycle in class LifecycleFactory

getLifecycle

public final Lifecycle getLifecycle(java.lang.String lifecycleId)

Specified by:
getLifecycle in class LifecycleFactory

getLifecycleIds

public final java.util.Iterator getLifecycleIds()

Specified by:
getLifecycleIds in class LifecycleFactory

createDefaultLifecycle

protected Lifecycle createDefaultLifecycle()
Factory method for creating the default lifecycle. Defualt implementation returns an instance of LifecycleImpl. May be overridden by subclasses.

Returns:
the default lifecycle

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG