org.objectweb.easybeans.deployment.xml.struct
Class RemoveMethod

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

public class RemoveMethod
extends java.lang.Object

This class manages the <remove-method> element of the xml DD.

Author:
Florent Benoit

Field Summary
private  MethodDD method
          This remove method is linked to a Method of the Bean (with params).
static java.lang.String NAME
          Name of this element.
private  java.lang.Boolean retainIfException
          boolean used to know if when there is an exception, the bean should be kept or not.
 
Constructor Summary
RemoveMethod()
           
 
Method Summary
 MethodDD getMethod()
           
 java.lang.Boolean getRetainIfException()
           
 void setMethod(MethodDD method)
          Sets the method of the bean which needs to be marked.
 void setRetainIfException(boolean retainIfException)
          If there is an exception, the bean should be kept or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

See Also:
Constant Field Values

method

private MethodDD method
This remove method is linked to a Method of the Bean (with params).


retainIfException

private java.lang.Boolean retainIfException
boolean used to know if when there is an exception, the bean should be kept or not. It uses a boolean object to know if the element has been set or not

Constructor Detail

RemoveMethod

public RemoveMethod()
Method Detail

setMethod

public void setMethod(MethodDD method)
Sets the method of the bean which needs to be marked.

Parameters:
method - the method to use

getMethod

public MethodDD getMethod()
Returns:
the method that will be used as a remove method

setRetainIfException

public void setRetainIfException(boolean retainIfException)
If there is an exception, the bean should be kept or not.

Parameters:
retainIfException - true to keep, or false to remove

getRetainIfException

public java.lang.Boolean getRetainIfException()
Returns:
the flag to know if when there is an exception, the bean should be kept or not. It returns null if it was not set.