private static class ProxyFactoryBean.PrototypePlaceholderAdvisor extends java.lang.Object implements Advisor, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
beanName |
private java.lang.String |
message |
| Constructor and Description |
|---|
PrototypePlaceholderAdvisor(java.lang.String beanName) |
| Modifier and Type | Method and Description |
|---|---|
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 shared with all instances of
the advised class obtained from the same Spring bean factory.
|
java.lang.String |
toString() |
private final java.lang.String beanName
private final java.lang.String message
public PrototypePlaceholderAdvisor(java.lang.String beanName)
public java.lang.String getBeanName()
public Advice getAdvice()
AdvisorgetAdvice in interface AdvisorMethodInterceptor,
BeforeAdvice,
ThrowsAdvice,
AfterReturningAdvicepublic boolean isPerInstance()
AdvisorNote that this method is not currently used by the framework.
Typical Advisor implementations always return true.
Use singleton/prototype bean definitions or appropriate programmatic
proxy creation to ensure that Advisors have the correct lifecycle model.
isPerInstance in interface Advisorpublic java.lang.String toString()
toString in class java.lang.Object