1 22 23 package org.jboss.mx.metadata.xb; 24 25 import java.util.ArrayList ; 26 import java.util.List ; 27 28 import org.jboss.mx.interceptor.Interceptor; 29 30 33 public class InterceptorsHolder 34 { 35 private ArrayList interceptors = new ArrayList (); 36 37 public void addInterceptor(Interceptor i) 38 { 39 interceptors.add(i); 40 } 41 public Interceptor[] getInterceptors() 42 { 43 Interceptor[] tmp = new Interceptor[interceptors.size()]; 44 interceptors.toArray(tmp); 45 return tmp; 46 } 47 } 48 | Popular Tags |