org.ow2.util.ee.metadata.ejbjar.api.xml.struct
Interface IInterceptorBinding

All Superinterfaces:
Serializable

public interface IInterceptorBinding
extends Serializable

Interface for element interceptor-binding.

Author:
Florent Benoit

Field Summary
static String NAME
          Name of this element.
 
Method Summary
 void addInterceptorClass(String interceptorClassName)
          Add the given interceptor to the list.
 void addOrderedInterceptorClass(String interceptorClassName)
          Add the given interceptor to the ordered list.
 String getEjbName()
           
 List<String> getInterceptorClassList()
           
 IMethodDD getMethod()
           
 List<String> getOrderInterceptorClassList()
           
 boolean isExcludeClassInterceptors()
           
 boolean isExcludeClassInterceptorsCalled()
           
 boolean isExcludeDefaultInterceptors()
           
 boolean isExcludeDefaultInterceptorsCalled()
           
 void setEjbName(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(IMethodDD method)
          Method on which define the interceptors.
 

Field Detail

NAME

static final String NAME
Name of this element.

See Also:
Constant Field Values
Method Detail

getEjbName

String getEjbName()
Returns:
the name of the EJB.

setEjbName

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

Parameters:
ejbName - the name of the ejb.

getMethod

IMethodDD getMethod()
Returns:
the method element

setMethod

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

Parameters:
method - the given method.

isExcludeClassInterceptors

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

setExcludeClassInterceptors

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

Parameters:
excludeClassInterceptors - true/false

isExcludeClassInterceptorsCalled

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

isExcludeDefaultInterceptors

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

setExcludeDefaultInterceptors

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

Parameters:
excludeDefaultInterceptors - true/false

isExcludeDefaultInterceptorsCalled

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

getInterceptorClassList

List<String> getInterceptorClassList()
Returns:
list of the interceptor classes.

getOrderInterceptorClassList

List<String> getOrderInterceptorClassList()
Returns:
list of ordered interceptor classes.

addInterceptorClass

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

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

addOrderedInterceptorClass

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

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


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.