1 22 package org.jboss.aop; 23 24 import org.jboss.aop.advice.AspectDefinition; 25 import org.jboss.aop.advice.Interceptor; 26 import org.jboss.aop.joinpoint.Joinpoint; 27 import org.jboss.aop.metadata.SimpleMetaData; 28 29 35 public interface InstanceAdvisor 36 { 37 public SimpleMetaData getMetaData(); 38 39 public boolean hasInterceptors(); 40 41 public Interceptor[] getInterceptors(); 42 43 public Interceptor[] getInterceptors(Interceptor[] baseChain); 44 45 public boolean hasAspects(); 46 47 public void insertInterceptor(Interceptor interceptor); 48 49 public void removeInterceptor(String name); 50 51 public void appendInterceptor(Interceptor interceptor); 52 53 public void insertInterceptorStack(String stackName); 54 55 public void removeInterceptorStack(String name); 56 57 public void appendInterceptorStack(String stackName); 58 59 66 public Object getPerInstanceAspect(String aspectName); 67 68 void insertInterceptor(int index, Interceptor interceptor); 69 70 void appendInterceptor(int index, Interceptor interceptor); 71 72 public Object getPerInstanceAspect(AspectDefinition def); 73 74 public Object getPerInstanceJoinpointAspect(Joinpoint joinpoint, AspectDefinition def); 75 76 public Domain getDomain(); 77 } 78 | Popular Tags |