org.objectweb.easybeans.deployment.xml.struct.common
Class LifeCycleCallback

java.lang.Object
  extended by org.objectweb.easybeans.deployment.xml.struct.common.LifeCycleCallback

public class LifeCycleCallback
extends java.lang.Object

This class defines the implementation of an element of callback type (post construct, pre destroy, etc).

Author:
Florent Benoit

Field Summary
private  java.lang.String lifecycleCallbackClass
          Element <lifecycle-callback-class>.
private  java.lang.String lifecycleCallbackMethod
          Element <lifecycle-callback-method>.
static java.lang.String POST_ACTIVATE
          Name of this element.
static java.lang.String POST_CONSTRUCT
          Name of this element.
static java.lang.String PRE_DESTROY
          Name of this element.
static java.lang.String PRE_PASSIVATE
          Name of this element.
 
Constructor Summary
LifeCycleCallback()
          Constructor.
 
Method Summary
 java.lang.String getLifecycleCallbackClass()
           
 java.lang.String getLifecycleCallbackMethod()
           
 void setLifecycleCallbackClass(java.lang.String lifecycleCallbackClass)
          Sets the name of the class.
 void setMethodName(java.lang.String lifecycleCallbackMethod)
          Sets the name of the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_ACTIVATE

public static final java.lang.String POST_ACTIVATE
Name of this element.

See Also:
Constant Field Values

POST_CONSTRUCT

public static final java.lang.String POST_CONSTRUCT
Name of this element.

See Also:
Constant Field Values

PRE_DESTROY

public static final java.lang.String PRE_DESTROY
Name of this element.

See Also:
Constant Field Values

PRE_PASSIVATE

public static final java.lang.String PRE_PASSIVATE
Name of this element.

See Also:
Constant Field Values

lifecycleCallbackClass

private java.lang.String lifecycleCallbackClass
Element <lifecycle-callback-class>.


lifecycleCallbackMethod

private java.lang.String lifecycleCallbackMethod
Element <lifecycle-callback-method>.

Constructor Detail

LifeCycleCallback

public LifeCycleCallback()
Constructor.

Method Detail

setLifecycleCallbackClass

public void setLifecycleCallbackClass(java.lang.String lifecycleCallbackClass)
Sets the name of the class.

Parameters:
lifecycleCallbackClass - the name of the class

getLifecycleCallbackClass

public java.lang.String getLifecycleCallbackClass()
Returns:
the class value.

setMethodName

public void setMethodName(java.lang.String lifecycleCallbackMethod)
Sets the name of the method.

Parameters:
lifecycleCallbackMethod - the name of the method

getLifecycleCallbackMethod

public java.lang.String getLifecycleCallbackMethod()
Returns:
the method name.