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

Quick Search    Search Deep

org.springframework.aop.target: Javadoc index of package org.springframework.aop.target.


Package Samples:

org.springframework.aop.target: Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.  

Classes:

LazyInitTargetSource: TargetSource that lazily accesses a singleton from a BeanFactory. Useful when a proxy reference is needed on initialization but the actual target object should not be initialized until first use. The target bean must me marked as "lazy-init" too, else it would get instantiated by the BeanFactory on startup. For example: <bean id="serviceTarget" class="example.MyService" lazy-init="true"> ... </bean> <bean id="service" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="targetSource"> <bean class="org.springframework.aop.target.LazyInitTargetSource"> ...
AbstractPoolingTargetSource: Abstract superclass for pooling TargetSources that maintains a pool of target instances, acquiring and releasing a target object from the pool for each method invocation. This class is independent of pooling technology. Subclasses must implement the getTarget() and releaseTarget() methods to work with their chosen pool. The newPrototypeInstance() method inherited from AbstractPrototypeBasedTargetSource can be used to create objects to put in the pool. Subclasses must also implement some of the monitoring methods from the PoolingConfig interface. This class provides the getPoolingConfigMixin() method ...
ThreadLocalTargetSource: Alternative to an object pool. This TargetSource uses a threading model in which every thread has its own copy of the target. There's no contention for targets. Target object creation is kept to a minimum on the running server. Application code is written as to a normal pool; callers can't assume they will be dealing with the same instance in invocations in different threads. However, state can be relied on during the operations of a single thread: for example, if one caller makes repeated calls on the AOP proxy. Cleanup is performed in the destroy() method from DisposableBean.
AbstractBeanFactoryBasedTargetSource: Base class for TargetSource implementations that are based on a Spring BeanFactory, delegating to Spring-managed bean instances. Subclasses can create prototype instances or lazily access a singleton target, for example. See LazyInitTargetSource and AbstractPrototypeBasedTargetSource's subclasses for concrete strategies. BeanFactoryBasedTargetSources are serializable. This involves disconnecting the current target and turning into a SingletonTargetSource.
SingletonTargetSource: Implementation of the TargetSource interface that holds a local object. This is the default implementation of TargetSource used by the AOP framework. There is no need to create objects of this class in application code. This class is serializable. However, the actual serializability of a SingletonTargetSource will depend on whether the target is serializable.
AbstractPrototypeBasedTargetSource: Base class for dynamic TargetSources that can create new prototype bean instances to support a pooling or new-instance-per-invocation strategy. Such TargetSources must run in a BeanFactory, as it needs to call the getBean method to create a new prototype instance. Therefore, this base class extends AbstractBeanFactoryBasedTargetSource.
HotSwappableTargetSource: Implementation of TargetSource interface that caches a local target object, but allows the target to be swapped while the application is running. If configuring an object of this class in a Spring IoC container, use constructor injection. This TargetSource is serializable if the target is at the time of serialization.
PrototypeTargetSource: TargetSource that creates a new instance of the target bean for each request. Can only be used in a bean factory.
EmptyTargetSource: Canonical TargetSource when there's no target, and behavior is supplied by interfaces and advisors.
CommonsPoolTargetSource: Jakarta Commons pooling implementation extending AbstractPoolingTargetSource.
PoolingConfig: Config interface for a pooling target source.
ThreadLocalTargetSourceStats: Statistics for a ThreadLocal TargetSource.

Home | Contact Us | Privacy Policy | Terms of Service