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
A Proxy
InvocationHandler
which delegates invocations to an Interceptor
.
- Author:
- David M. Lloyd
- See Also:
- Serialized Form
InterceptorInvocationHandler
public InterceptorInvocationHandler(Interceptor interceptor)
- Construct a new instance.
- Parameters:
interceptor
- the interceptor to send invocations through
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Handle a proxy method invocation.
- Specified by:
invoke
in interface InvocationHandler
- 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
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.