com.interface21.aop.framework
Interface ProxyConfig

All Known Implementing Classes:
DefaultProxyConfig

public interface ProxyConfig

Interface to be implemented by classes that hold the configuration of a factory of AOP proxies. This configuration includes the interceptors and pointcuts, and the proxied interfaces.

Since:
13-Mar-2003
Version:
$Revision: 1.3 $
Author:
Rod Johnson

Method Summary
 void addInterceptor(org.aopalliance.Interceptor interceptor)
          Add to tail
 void addInterceptor(int pos, org.aopalliance.Interceptor interceptor)
           
 void addMethodPointcut(int pos, MethodPointcut pc)
          Add a pointcut
 void addMethodPointcut(MethodPointcut pc)
          Add a pointcut
 org.aopalliance.AttributeRegistry getAttributeRegistry()
           
 boolean getExposeInvocation()
           
 java.util.List getMethodPointcuts()
          List of interceptor and pointcut
 java.lang.Class[] getProxiedInterfaces()
           
 java.lang.Object getTarget()
          Can return null if now target.
 boolean removeInterceptor(org.aopalliance.Interceptor interceptor)
          Remove the interceptor
 

Method Detail

getExposeInvocation

public boolean getExposeInvocation()

getAttributeRegistry

public org.aopalliance.AttributeRegistry getAttributeRegistry()

getMethodPointcuts

public java.util.List getMethodPointcuts()
List of interceptor and pointcut

getProxiedInterfaces

public java.lang.Class[] getProxiedInterfaces()

addInterceptor

public void addInterceptor(org.aopalliance.Interceptor interceptor)
Add to tail
Parameters:
interceptor -  

addInterceptor

public void addInterceptor(int pos,
                           org.aopalliance.Interceptor interceptor)
Parameters:
pos - index from 0 (head).
interceptor -  

addMethodPointcut

public void addMethodPointcut(MethodPointcut pc)
Add a pointcut
Parameters:
pc -  

addMethodPointcut

public void addMethodPointcut(int pos,
                              MethodPointcut pc)
Add a pointcut
Parameters:
pc -  

removeInterceptor

public boolean removeInterceptor(org.aopalliance.Interceptor interceptor)
Remove the interceptor
Parameters:
interceptor -  
Returns:
if the interceptor was found and removed

getTarget

public java.lang.Object getTarget()
Can return null if now target. Returns true if we have a target interceptor. A target interceptor must be the last interceptor. Implementations should be efficient, as this will be invoked on each invocation.
Returns:
Object


Rod Johnson and Spring contributors 2001-2003.