java.lang.Objectorg.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
All Implemented Interfaces:
TargetSource, BeanFactoryAware, Serializable
Direct Known Subclasses:
LazyInitTargetSource, SimpleBeanTargetSource, CommonsPoolTargetSource, PrototypeTargetSource, AbstractPoolingTargetSource, AbstractPrototypeBasedTargetSource, NotificationPublisherAwareLazyTargetSource, ThreadLocalTargetSource
Subclasses can create prototype instances or lazily access a singleton target, for example. See LazyInitTargetSource and AbstractPrototypeBasedTargetSource 's subclasses for concrete strategies.
BeanFactory-based TargetSources are serializable. This involves disconnecting the current target and turning into a SingletonTargetSource .
Juergen - HoellerRod - Johnson1.1.4 - | Field Summary | ||
|---|---|---|
| protected final Log | logger | Logger available to subclasses |
| Method from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource Summary: |
|---|
| copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toString, writeReplace |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource Detail: |
|---|
|
|
|
|
|
|
|
|
getBean method on every invocation. |
The target bean should not be a singleton, else the same instance will always be obtained from the factory, resulting in the same behavior as provided by SingletonTargetSource . |
Default is to detect the type automatically, through a |
|
writeReplace() method must be visible to the class
being serialized.)
With this implementation of this method, there is no need to mark non-serializable fields in this class or subclasses as transient. |