Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » aspectj » annotation » [javadoc | source]
org.springframework.aop.aspectj.annotation
public class: PrototypeAspectInstanceFactory [javadoc | source]
java.lang.Object
   org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
      org.springframework.aop.aspectj.annotation.PrototypeAspectInstanceFactory

All Implemented Interfaces:
    MetadataAwareAspectInstanceFactory

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.

Constructor:
 public PrototypeAspectInstanceFactory(BeanFactory beanFactory,
    String name) 
    Create a PrototypeAspectInstanceFactory. AspectJ will be called to introspect to create AJType metadata using the type returned for the given bean name from the BeanFactory.
    Parameters:
    beanFactory - the BeanFactory to obtain instance(s) from
    name - the name of the bean
Methods from org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory:
getAspectClassLoader,   getAspectInstance,   getAspectMetadata,   getOrder,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait