com.bm.ejb3metadata.xml.struct
Class LifeCycleCallback

java.lang.Object
  extended by com.bm.ejb3metadata.xml.struct.LifeCycleCallback

public class LifeCycleCallback
extends java.lang.Object

This class defines a life cycle callback that is described in an XML DD. It is used for post-construct, pre-destroy, pre-passivate, etc.

Author:
Florent Benoit

Field Summary
static java.lang.String POST_CONSTRUCT
          Post construct.
static java.lang.String PRE_DESTROY
          Pre Destroy.
 
Constructor Summary
LifeCycleCallback()
           
 
Method Summary
 java.lang.String getClassName()
          Gets the class of this callback.
 java.lang.String getMethod()
          Gets the method of the class for the callback.
 void setClassName(java.lang.String className)
          Sets the class of the callback.
 void setMethod(java.lang.String method)
          Sets the method name of the callback's class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_CONSTRUCT

public static final java.lang.String POST_CONSTRUCT
Post construct.

See Also:
Constant Field Values

PRE_DESTROY

public static final java.lang.String PRE_DESTROY
Pre Destroy.

See Also:
Constant Field Values
Constructor Detail

LifeCycleCallback

public LifeCycleCallback()
Method Detail

getClassName

public java.lang.String getClassName()
Gets the class of this callback.

Returns:
the class name.

setClassName

public void setClassName(java.lang.String className)
Sets the class of the callback.

Parameters:
className - the name of the class.

getMethod

public java.lang.String getMethod()
Gets the method of the class for the callback.

Returns:
the method name.

setMethod

public void setMethod(java.lang.String method)
Sets the method name of the callback's class.

Parameters:
method - the method name.


Copyright © 2008. All Rights Reserved.