|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProxyFactory
A factory for AOP proxies. Proxies can only be created for
classes that implement IProxyTarget
and are used in
a context file that is processed by a context generator.
Method Summary | |
---|---|
IProxy |
createLazyInitProxy(IBeanDelegate reference)
Creates a lazy init proxy for the specified bean reference. |
IProxy |
createProxy(IProxyTarget target,
IInvocationHandler handler)
Creates a new proxy for the specified object. |
IProxy |
createProxy(IProxyTarget target,
IMethodInterceptor[] interceptors)
Creates a new proxy for the specified object using the specified interceptors. |
IProxyClass |
getProxyClass(java.lang.Class targetClass)
Returns an IProxyClass object for the specified class. |
Method Detail |
---|
IProxy createProxy(IProxyTarget target, IInvocationHandler handler) throws java.lang.Exception
Proxy.newProxyInstance(ClassLoader, Class[], java.lang.reflect.InvocationHandler)
.
target
- an object to create a proxy forhandler
- an invocation handler to forward
intercepted method calls to
java.lang.Exception
IProxy createProxy(IProxyTarget target, IMethodInterceptor[] interceptors) throws java.lang.Exception
target
- an object to create a proxy forinterceptors
- an array of method interceptors
java.lang.Exception
IProxy createLazyInitProxy(IBeanDelegate reference) throws java.lang.Exception
IBeanReference#getBean()
.
reference
- a bean reference to be wrapped by a lazy init proxy
java.lang.Exception
IProxyClass getProxyClass(java.lang.Class targetClass) throws java.lang.Exception
IProxyClass
object for the specified class.
targetClass
- a class to return a proxy class for
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |