FileDocCategorySizeDatePackage
InterceptorsImpl.javaAPI DocJBoss 4.2.12178Fri Jul 13 20:53:44 BST 2007org.jboss.ejb

InterceptorsImpl

public class InterceptorsImpl extends Object implements javax.interceptor.Interceptors
// *
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
private List
values
Constructors Summary
public InterceptorsImpl()


    
   
   
Methods Summary
public voidaddValue(java.lang.Class value)

      values.add(value);
   
public java.lang.ClassannotationType()

      return javax.interceptor.Interceptors.class;
   
public static org.jboss.ejb.InterceptorsImplgetImpl(javax.interceptor.Interceptors interceptors)

      if (interceptors == null)
      {
         return new InterceptorsImpl();
      }
      
      if (interceptors instanceof InterceptorsImpl)
      {
         return (InterceptorsImpl)interceptors;
      }
      
      InterceptorsImpl impl = new InterceptorsImpl();
      
      for (Class clazz : interceptors.value())
      {
         impl.addValue(clazz);
      }
      return impl;
   
public java.lang.Class[]value()

      Class[] result = new Class[values.size()];
      values.toArray(result);
      return result;