org.springframework.aop.framework
Class ProxyFactoryBean.PrototypePlaceholderAdvisor

java.lang.Object
  extended byorg.springframework.aop.framework.ProxyFactoryBean.PrototypePlaceholderAdvisor
All Implemented Interfaces:
Advisor
Enclosing class:
ProxyFactoryBean

public static class ProxyFactoryBean.PrototypePlaceholderAdvisor
extends java.lang.Object
implements Advisor

Used in the interceptor chain where we need to replace a bean with a prototype on creating a proxy


Constructor Summary
ProxyFactoryBean.PrototypePlaceholderAdvisor(java.lang.String beanName)
           
 
Method Summary
 org.aopalliance.aop.Advice getAdvice()
          Return the advice part of this aspect.
 java.lang.String getBeanName()
           
 boolean isPerInstance()
          Return whether this advice is associated with a particular instance (for example, creating a mixin) or is it shared with all instances of the advised class obtained from the same Spring bean factory.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyFactoryBean.PrototypePlaceholderAdvisor

public ProxyFactoryBean.PrototypePlaceholderAdvisor(java.lang.String beanName)
Method Detail

getBeanName

public java.lang.String getBeanName()

getAdvice

public org.aopalliance.aop.Advice getAdvice()
Description copied from interface: Advisor
Return the advice part of this aspect. An advice may be an interceptor, a throws advice, before advice etc.
Spring supports user-defined advice, via the org.springframework.aop.adapter package.

Specified by:
getAdvice in interface Advisor
Returns:
the advice that should apply if the pointcut matches

isPerInstance

public boolean isPerInstance()
Description copied from interface: Advisor
Return whether this advice is associated with a particular instance (for example, creating a mixin) or is it shared with all instances of the advised class obtained from the same Spring bean factory. Note that this method is not currently used by the framework. Use singleton/prototype bean definitions or appropriate programmatic proxy creation to ensure that Advisors have the correct lifecycle model.

Specified by:
isPerInstance in interface Advisor

toString

public java.lang.String toString()


Copyright (C) 2003-2004 The Spring Framework Project.