public final class InterceptorInvocationHandler extends Object implements InvocationHandler, InterceptorInvoker
Constructor and Description |
---|
InterceptorInvocationHandler() |
Modifier and Type | Method and Description |
---|---|
Object[] |
getInterceptorInstances() |
Object |
getProxy() |
Object |
getTargetInstance() |
void |
init(Object targetInstance,
Object[] interceptorInstances,
Object clientProxy,
InterceptorManager manager) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
invokeAroundConstruct() |
void |
invokePostConstruct() |
void |
invokePreDestroy() |
String |
toString() |
public void init(Object targetInstance, Object[] interceptorInstances, Object clientProxy, InterceptorManager manager)
public Object getProxy()
getProxy
in interface InterceptorInvoker
public Object getTargetInstance()
getTargetInstance
in interface InterceptorInvoker
public Object[] getInterceptorInstances()
getInterceptorInstances
in interface InterceptorInvoker
public void invokeAroundConstruct() throws Exception
invokeAroundConstruct
in interface InterceptorInvoker
Exception
public void invokePostConstruct() throws Exception
invokePostConstruct
in interface InterceptorInvoker
Exception
public void invokePreDestroy() throws Exception
invokePreDestroy
in interface InterceptorInvoker
Exception
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
Copyright © 2019. All rights reserved.