public class Dispatcher extends Object implements net.sf.cglib.proxy.MethodInterceptor
MethodInterceptor
implementation to intercept the method invocation and invoke interceptor
components.
Dispatcher
is constructed by Assembler
internally and
attached to the dynamically-generated subclass of the component if a
joinpoint method is declared on the component class.Assembler
Constructor and Description |
---|
Dispatcher(Container container,
Descriptor<?> descriptor)
|
public Dispatcher(Container container, Descriptor<?> descriptor)
container
- descriptor
- public Object intercept(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable
intercept
in interface net.sf.cglib.proxy.MethodInterceptor
object
- The component (Dynamically-generated subclass) instance
invoked.method
- The component method invoked.args
- The component method invocation arguments.proxy
- MethodProxy
provided by cglib and used to invoke
superclass method from dynamically-generated subclass.Throwable
Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.