private static class JndiObjectFactoryBean.JndiContextExposingInterceptor extends java.lang.Object implements MethodInterceptor
Modifier and Type | Field and Description |
---|---|
private JndiTemplate |
jndiTemplate |
Constructor and Description |
---|
JndiContextExposingInterceptor(JndiTemplate jndiTemplate) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(MethodInvocation invocation)
Implement this method to perform extra treatments before and
after the invocation.
|
protected boolean |
isEligible(java.lang.reflect.Method method) |
private final JndiTemplate jndiTemplate
public JndiContextExposingInterceptor(JndiTemplate jndiTemplate)
public java.lang.Object invoke(MethodInvocation invocation) throws java.lang.Throwable
MethodInterceptor
Joinpoint.proceed()
.invoke
in interface MethodInterceptor
invocation
- the method invocation joinpointJoinpoint.proceed()
;
might be intercepted by the interceptorjava.lang.Throwable
- if the interceptors or the target object
throws an exceptionprotected boolean isEligible(java.lang.reflect.Method method)