The Spring Framework

org.springframework.aop.aspectj.annotation
Class PrototypeAspectInstanceFactory

java.lang.Object
  extended by org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
      extended by org.springframework.aop.aspectj.annotation.PrototypeAspectInstanceFactory
All Implemented Interfaces:
MetadataAwareAspectInstanceFactory, AspectInstanceFactory

public class PrototypeAspectInstanceFactory
extends BeanFactoryAspectInstanceFactory

AspectInstanceFactory backed by Spring IoC prototype, and enforcing prototype semantics.

Note that this may instantiate multiple times, which probably won't give the semantics you expect. Use a LazySingletonMetadataAwareAspectInstanceFactoryDecorator to wrap this to ensure only one new aspect comes back.

Since:
2.0
Author:
Rod Johnson
See Also:
LazySingletonMetadataAwareAspectInstanceFactoryDecorator

Constructor Summary
PrototypeAspectInstanceFactory(BeanFactory beanFactory, String name)
           
 
Method Summary
 
Methods inherited from class org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
getAspectInstance, getAspectMetadata, getInstantiationCount, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrototypeAspectInstanceFactory

public PrototypeAspectInstanceFactory(BeanFactory beanFactory,
                                      String name)

The Spring Framework

Copyright © 2002-2006 The Spring Framework.