FileDocCategorySizeDatePackage
InterceptorBinding.javaAPI DocJBoss 4.2.13292Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3.metamodel

InterceptorBinding

public class InterceptorBinding extends Method
author
Kabir Khan
version
$Revision: 60233 $

Fields Summary
Boolean
ordered
private ArrayList
interceptorClasses
private boolean
excludeDefaultInterceptors
private boolean
excludeClassInterceptors
Constructors Summary
public InterceptorBinding()

   
    
   
      super();
   
Methods Summary
public voidaddInterceptorClass(java.lang.String interceptorClass)

      if (ordered == null)
      {
         ordered = false;
      }
      if (ordered) throw new RuntimeException("Cannot have both interceptor-class and interceptor-order in interceptor-binding");
      this.interceptorClasses.add(interceptorClass);
   
public booleangetExcludeClassInterceptors()

      return excludeClassInterceptors;
   
public booleangetExcludeDefaultInterceptors()

      return excludeDefaultInterceptors;
   
public java.util.ArrayListgetInterceptorClasses()

      return interceptorClasses;
   
public booleanisOrdered()

      if (ordered == null) return false;
      return ordered;
   
public voidsetExcludeClassInterceptors(boolean excludeClassInterceptors)

      this.excludeClassInterceptors = excludeClassInterceptors;
   
public voidsetExcludeDefaultInterceptors(boolean excludeDefaultInterceptors)

      this.excludeDefaultInterceptors = excludeDefaultInterceptors;
   
public voidsetOrderedInterceptorClasses(InterceptorOrder order)

      if (ordered == null)
      {
         ordered = true;
      }
      if (!ordered) throw new RuntimeException("Cannot have both interceptor-class and interceptor-order in interceptor-binding");
      this.interceptorClasses.addAll(order.getInterceptorClasses());
   
public java.lang.StringtoString()

      return InterceptorBinding.class.getName() + "[ejbName=" + getEjbName() +
         ",methodName=" + getMethodName() +
         ",ordered=" + isOrdered() + 
         ",excludeClassInterceptors=" + excludeClassInterceptors + 
         ",excludeDefaultInterceptors=" + excludeDefaultInterceptors +
         ",interceptorClasses=" + interceptorClasses +
         "]";