org.apache.tapestry.spec
Class BeanLifecycle

java.lang.Object
  |
  +--org.apache.commons.lang.enum.Enum
        |
        +--org.apache.tapestry.spec.BeanLifecycle
All Implemented Interfaces:
Comparable, Serializable

public class BeanLifecycle
extends org.apache.commons.lang.enum.Enum

An Enum of the different possible lifecycles for a JavaBean.

Since:
1.0.4
Version:
$Id: BeanLifecycle.java,v 1.2 2004/01/19 21:32:16 hlship Exp $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Field Summary
static BeanLifecycle NONE
          No lifecycle; the bean is created fresh on each reference and not retained.
static BeanLifecycle PAGE
          The bean is created once and reused for the lifespan of the page containing the component.
static BeanLifecycle RENDER
          The bean is create and reused until the end of the current render, at which point it is discarded.
static BeanLifecycle REQUEST
          The standard lifecycle; the bean is retained for the duration of the request cycle and is discarded at the end of the request cycle.
 
Methods inherited from class org.apache.commons.lang.enum.Enum
compareTo, equals, getEnum, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final BeanLifecycle NONE
No lifecycle; the bean is created fresh on each reference and not retained.


REQUEST

public static final BeanLifecycle REQUEST
The standard lifecycle; the bean is retained for the duration of the request cycle and is discarded at the end of the request cycle.


PAGE

public static final BeanLifecycle PAGE
The bean is created once and reused for the lifespan of the page containing the component.


RENDER

public static final BeanLifecycle RENDER
The bean is create and reused until the end of the current render, at which point it is discarded.

Since:
2.2