Package org.jboss.invocation
Class InterceptorInvocationHandler
- java.lang.Object
-
- org.jboss.invocation.InterceptorInvocationHandler
-
- All Implemented Interfaces:
Serializable,InvocationHandler
public class InterceptorInvocationHandler extends Object implements InvocationHandler, Serializable
- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterceptorInvocationHandler(Interceptor interceptor)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(Object proxy, Method method, Object[] args)Handle a proxy method invocation.StringtoString()
-
-
-
Constructor Detail
-
InterceptorInvocationHandler
public InterceptorInvocationHandler(Interceptor interceptor)
Construct a new instance.- Parameters:
interceptor- the interceptor to send invocations through
-
-
Method Detail
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Handle a proxy method invocation.- Specified by:
invokein interfaceInvocationHandler- Parameters:
proxy- the proxy instancemethod- the invoked methodargs- the method arguments- Returns:
- the result of the method call
- Throws:
Throwable- the exception to thrown from the method invocation on the proxy instance, if any
-
-