org.springframework.aop.interceptor
Class ExposeBeanNameAdvisors.ExposeBeanNameIntroduction

java.lang.Object
  extended by org.springframework.aop.support.IntroductionInfoSupport
      extended by org.springframework.aop.support.DelegatingIntroductionInterceptor
          extended by org.springframework.aop.interceptor.ExposeBeanNameAdvisors.ExposeBeanNameIntroduction
All Implemented Interfaces:
java.io.Serializable, DynamicIntroductionAdvice, IntroductionInfo, IntroductionInterceptor, NamedBean
Enclosing class:
ExposeBeanNameAdvisors

private static class ExposeBeanNameAdvisors.ExposeBeanNameIntroduction
extends DelegatingIntroductionInterceptor
implements NamedBean

Introduction that exposes the specified bean name as invocation attribute.


Field Summary
private  java.lang.String beanName
           
 
Fields inherited from class org.springframework.aop.support.IntroductionInfoSupport
publishedInterfaces
 
Constructor Summary
ExposeBeanNameAdvisors.ExposeBeanNameIntroduction(java.lang.String beanName)
           
 
Method Summary
 java.lang.String getBeanName()
          Return the name of this bean in a Spring bean factory.
 java.lang.Object invoke(MethodInvocation mi)
          Subclasses may need to override this if they want to perform custom behaviour in around advice.
 
Methods inherited from class org.springframework.aop.support.DelegatingIntroductionInterceptor
doProceed
 
Methods inherited from class org.springframework.aop.support.IntroductionInfoSupport
getInterfaces, implementInterfacesOnObject, implementsInterface, isMethodOnIntroducedInterface, suppressInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.aop.DynamicIntroductionAdvice
implementsInterface
 

Field Detail

beanName

private final java.lang.String beanName
Constructor Detail

ExposeBeanNameAdvisors.ExposeBeanNameIntroduction

public ExposeBeanNameAdvisors.ExposeBeanNameIntroduction(java.lang.String beanName)
Method Detail

invoke

public java.lang.Object invoke(MethodInvocation mi)
                        throws java.lang.Throwable
Description copied from class: DelegatingIntroductionInterceptor
Subclasses may need to override this if they want to perform custom behaviour in around advice. However, subclasses should invoke this method, which handles introduced interfaces and forwarding to the target.

Overrides:
invoke in class DelegatingIntroductionInterceptor
Throws:
java.lang.Throwable

getBeanName

public java.lang.String getBeanName()
Description copied from interface: NamedBean
Return the name of this bean in a Spring bean factory.

Specified by:
getBeanName in interface NamedBean