The Spring Framework

org.springframework.aop.aspectj
Interface AspectInstanceFactory

All Known Subinterfaces:
MetadataAwareAspectInstanceFactory
All Known Implementing Classes:
BeanFactoryAspectInstanceFactory, BeanFactoryAspectInstanceFactory, LazySingletonMetadataAwareAspectInstanceFactoryDecorator, PrototypeAspectInstanceFactory, SingletonAspectInstanceFactory, SingletonMetadataAwareAspectInstanceFactory

public interface AspectInstanceFactory

Interface implemented to provide instance of the AspectJ aspect on which the aspect method exists. Decouples from Spring's IoC container.

Since:
2.0
Author:
Rod Johnson

Method Summary
 Object getAspectInstance()
          Create an instance of this factory's aspect.
 int getInstantiationCount()
          Return the number of instantiations from this factory.
 

Method Detail

getAspectInstance

Object getAspectInstance()
Create an instance of this factory's aspect.


getInstantiationCount

int getInstantiationCount()
Return the number of instantiations from this factory.

Returns:
the number of aspect instances created

The Spring Framework

Copyright © 2002-2006 The Spring Framework.