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

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

public class InterceptorBinding
extends java.lang.Object

This class represents the <interceptor-binding> element.

Author:
Florent Benoit

Field Summary
private  java.lang.String ejbName
          Name of the EJB.
private  boolean excludeClassInterceptors
          Exclude class interceptors for a method on a bean.
private  boolean excludeClassInterceptorsCalled
          setExcludeClassInterceptors() called.
private  boolean excludeDefaultInterceptors
          Exclude the default interceptors for this bean ?
private  boolean excludeDefaultInterceptorsCalled
          setExcludeClassInterceptors() called.
private  java.util.List<java.lang.String> interceptorClassList
          List of interceptor-class.
private  MethodDD method
          Method on which apply the interceptors.
static java.lang.String NAME
          Name of this element.
private  java.util.List<java.lang.String> orderInterceptorClassList
          Interceptor-order element.
(which contains a list of interceptor-classList)
 
Constructor Summary
InterceptorBinding()
          Default constructor.
orderInterceptorClassList is null by default.
 
Method Summary
 void addInterceptorClass(java.lang.String interceptorClassName)
          Add the given interceptor to the list.
 void addOrderedInterceptorClass(java.lang.String interceptorClassName)
          Add the given interceptor to the ordered list.
 java.lang.String getEjbName()
           
 java.util.List<java.lang.String> getInterceptorClassList()
           
 MethodDD getMethod()
           
 java.util.List<java.lang.String> getOrderInterceptorClassList()
           
 boolean isExcludeClassInterceptors()
           
 boolean isExcludeClassInterceptorsCalled()
           
 boolean isExcludeDefaultInterceptors()
           
 boolean isExcludeDefaultInterceptorsCalled()
           
 void setEjbName(java.lang.String ejbName)
          Sets the name of this ejb (or wildcard).
 void setExcludeClassInterceptors(boolean excludeClassInterceptors)
          Exclude or not class interceptors ?
 void setExcludeDefaultInterceptors(boolean excludeDefaultInterceptors)
          Exclude or not default interceptors ?
 void setMethod(MethodDD method)
          Method on which define the interceptors.
 
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

ejbName

private java.lang.String ejbName
Name of the EJB. (if * = default interceptor: apply to all beans)


interceptorClassList

private java.util.List<java.lang.String> interceptorClassList
List of interceptor-class.


orderInterceptorClassList

private java.util.List<java.lang.String> orderInterceptorClassList
Interceptor-order element.
(which contains a list of interceptor-classList)


excludeDefaultInterceptors

private boolean excludeDefaultInterceptors
Exclude the default interceptors for this bean ?


excludeClassInterceptors

private boolean excludeClassInterceptors
Exclude class interceptors for a method on a bean.


excludeClassInterceptorsCalled

private boolean excludeClassInterceptorsCalled
setExcludeClassInterceptors() called.


excludeDefaultInterceptorsCalled

private boolean excludeDefaultInterceptorsCalled
setExcludeClassInterceptors() called.


method

private MethodDD method
Method on which apply the interceptors.

Constructor Detail

InterceptorBinding

public InterceptorBinding()
Default constructor.
orderInterceptorClassList is null by default.

Method Detail

getEjbName

public java.lang.String getEjbName()
Returns:
the name of the EJB.

setEjbName

public void setEjbName(java.lang.String ejbName)
Sets the name of this ejb (or wildcard).

Parameters:
ejbName - the name of the ejb.

getMethod

public MethodDD getMethod()
Returns:
the method element

setMethod

public void setMethod(MethodDD method)
Method on which define the interceptors.

Parameters:
method - the given method.

isExcludeClassInterceptors

public boolean isExcludeClassInterceptors()
Returns:
true if the class interceptors are excluded for the given method

setExcludeClassInterceptors

public void setExcludeClassInterceptors(boolean excludeClassInterceptors)
Exclude or not class interceptors ?

Parameters:
excludeClassInterceptors - true/false

isExcludeClassInterceptorsCalled

public boolean isExcludeClassInterceptorsCalled()
Returns:
true if method setExcludeClassInterceptors has been called (with false or true)

isExcludeDefaultInterceptors

public boolean isExcludeDefaultInterceptors()
Returns:
true if the default interceptors are excluded for the given bean

setExcludeDefaultInterceptors

public void setExcludeDefaultInterceptors(boolean excludeDefaultInterceptors)
Exclude or not default interceptors ?

Parameters:
excludeDefaultInterceptors - true/false

isExcludeDefaultInterceptorsCalled

public boolean isExcludeDefaultInterceptorsCalled()
Returns:
true if method setExcludeDefaultInterceptors has been called (with false or true)

getInterceptorClassList

public java.util.List<java.lang.String> getInterceptorClassList()
Returns:
list of the interceptor classes.

getOrderInterceptorClassList

public java.util.List<java.lang.String> getOrderInterceptorClassList()
Returns:
list of ordered interceptor classes.

addInterceptorClass

public void addInterceptorClass(java.lang.String interceptorClassName)
Add the given interceptor to the list.

Parameters:
interceptorClassName - the name of the interceptor's class

addOrderedInterceptorClass

public void addOrderedInterceptorClass(java.lang.String interceptorClassName)
Add the given interceptor to the ordered list.

Parameters:
interceptorClassName - the name of the interceptor's class