public class PrototypeAspectInstanceFactory extends BeanFactoryAspectInstanceFactory implements java.io.Serializable
AspectInstanceFactory backed by a
BeanFactory-provided prototype, enforcing prototype semantics.
Note that this may instantiate multiple times, which probably won't give the
semantics you expect. Use a LazySingletonAspectInstanceFactoryDecorator
to wrap this to ensure only one new aspect comes back.
BeanFactory,
LazySingletonAspectInstanceFactoryDecorator,
Serialized FormHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
PrototypeAspectInstanceFactory(BeanFactory beanFactory,
java.lang.String name)
Create a PrototypeAspectInstanceFactory.
|
getAspectClassLoader, getAspectCreationMutex, getAspectInstance, getAspectMetadata, getOrder, toStringpublic PrototypeAspectInstanceFactory(BeanFactory beanFactory, java.lang.String name)
beanFactory - the BeanFactory to obtain instance(s) fromname - the name of the bean