private static class ExposeBeanNameAdvisors.ExposeBeanNameInterceptor extends java.lang.Object implements MethodInterceptor
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
beanName |
Constructor and Description |
---|
ExposeBeanNameInterceptor(java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(MethodInvocation mi)
Implement this method to perform extra treatments before and
after the invocation.
|
public ExposeBeanNameInterceptor(java.lang.String beanName)
public java.lang.Object invoke(MethodInvocation mi) throws java.lang.Throwable
MethodInterceptor
Joinpoint.proceed()
.invoke
in interface MethodInterceptor
mi
- the method invocation joinpointJoinpoint.proceed()
;
might be intercepted by the interceptorjava.lang.Throwable
- if the interceptors or the target object
throws an exception