All Implemented Interfaces:
TargetClassAware
All Known Implementing Classes:
EmptyTargetSource, LazyInitTargetSource, HotSwappableTargetSource, AbstractRefreshableTargetSource, MBeanServerConnectionLazyInitTargetSource, SimpleBeanTargetSource, BeanFactoryRefreshableTargetSource, SingletonTargetSource, CommonsPoolTargetSource, PrototypeTargetSource, AbstractPoolingTargetSource, RefreshableScriptTargetSource, JndiObjectTargetSource, AbstractPrototypeBasedTargetSource, NotificationPublisherAwareLazyTargetSource, ThreadLocalTargetSource, AbstractLazyCreationTargetSource, AbstractBeanFactoryBasedTargetSource, JMXConnectorLazyInitTargetSource
TargetSource is used to obtain the current "target" of
an AOP invocation, which will be invoked via reflection if no around
advice chooses to end the interceptor chain itself.
If a TargetSource is "static", it will always return
the same target, allowing optimizations in the AOP framework. Dynamic
target sources can support pooling, hot swapping, etc.
Application developers don't usually need to work with
TargetSources directly: this is an AOP framework interface.
Rod - Johnson| Method from org.springframework.aop.TargetSource Summary: |
|---|
| getTarget, getTargetClass, isStatic, releaseTarget |
| Method from org.springframework.aop.TargetSource Detail: |
|---|
|
Can return |
In that case, there will be no need to invoke #releaseTarget(Object) , and the AOP framework can cache the return value of #getTarget() . |
|