jfun.yan.lifecycle
Class Lifecycle.Entry

java.lang.Object
  extended by jfun.yan.lifecycle.Lifecycle.Entry
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Lifecycle

public static class Lifecycle.Entry
extends java.lang.Object
implements java.io.Serializable

This class encapsulates the "what-to-do" information for a life-cycle phase.

See Also:
Serialized Form

Constructor Summary
Lifecycle.Entry(Procedure proc, boolean reentrant)
          To create a Entry object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Procedure getProcedure()
          To get the procedure to invoke.
 int hashCode()
           
 boolean isReentrant()
          Is it re-entrant?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lifecycle.Entry

public Lifecycle.Entry(Procedure proc,
                       boolean reentrant)
To create a Entry object.

Parameters:
proc - the Procedure object to invoke for the phase.
reentrant - whether the Procedure is re-entrant. If not re-entrant, the second time the procedure is called for the same object, it does nothing.
Method Detail

getProcedure

public Procedure getProcedure()
To get the procedure to invoke.


isReentrant

public boolean isReentrant()
Is it re-entrant?


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object