Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.springframework.aop.framework
Class ProxyFactoryBean.PrototypePlaceholderAdvisor  view ProxyFactoryBean.PrototypePlaceholderAdvisor download ProxyFactoryBean.PrototypePlaceholderAdvisor.java

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

private static class ProxyFactoryBean.PrototypePlaceholderAdvisor
extends java.lang.Object
implements org.springframework.aop.Advisor

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


Field Summary
private  java.lang.String beanName
           
private  java.lang.String message
           
 
Constructor Summary
ProxyFactoryBean.PrototypePlaceholderAdvisor(java.lang.String beanName)
           
 
Method Summary
 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()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beanName

private final java.lang.String beanName

message

private final java.lang.String message
Constructor Detail

ProxyFactoryBean.PrototypePlaceholderAdvisor

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

getBeanName

public java.lang.String getBeanName()

getAdvice

public Advice getAdvice()
Description copied from interface: org.springframework.aop.Advisor
Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.

Specified by:
getAdvice in interface org.springframework.aop.Advisor

isPerInstance

public boolean isPerInstance()
Description copied from interface: org.springframework.aop.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 org.springframework.aop.Advisor

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).