com.interface21.aop.framework
Class ProxyFactory

java.lang.Object
  |
  +--com.interface21.aop.framework.DefaultProxyConfig
        |
        +--com.interface21.aop.framework.ProxyFactory
All Implemented Interfaces:
InitializingBean, ProxyConfig

public class ProxyFactory
extends DefaultProxyConfig

Factory for AOP proxies for programmatic use, rather than via a bean factory. This class provides a simple way of obtaining and configuring AOP proxies in code.

Since:
14-Mar-2003
Version:
$Id: ProxyFactory.java,v 1.4 2003/05/15 17:16:55 johnsonr Exp $
Author:
Rod Johnson

Fields inherited from class com.interface21.aop.framework.DefaultProxyConfig
logger
 
Constructor Summary
ProxyFactory(java.lang.Class[] interfaces)
          No target, only interfaces
ProxyFactory(java.lang.Object target)
          Proxy all interfaces
 
Method Summary
 java.lang.Object getProxy()
          Can be called repeatedly.
 
Methods inherited from class com.interface21.aop.framework.DefaultProxyConfig
addInterceptor, addInterceptor, addInterface, addMethodPointcut, addMethodPointcut, afterPropertiesSet, countInterceptorsOfType, getAttributeRegistry, getExposeInvocation, getMethodPointcuts, getProxiedInterfaces, getTarget, interceptorIncluded, removeInterceptor, removeInterface, replaceMethodPointcut, setAttributeRegistry, setExposeInvocation, setInterfaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactory

public ProxyFactory(java.lang.Object target)
             throws AopConfigException
Proxy all interfaces
Parameters:
target -  

ProxyFactory

public ProxyFactory(java.lang.Class[] interfaces)
No target, only interfaces
Method Detail

getProxy

public java.lang.Object getProxy()
Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove "interceptors"
Returns:
Object


Rod Johnson and Spring contributors 2001-2003.