org.springframework.aop.aspectj
Class SingletonAspectInstanceFactory
java.lang.Object
org.springframework.aop.aspectj.SingletonAspectInstanceFactory
- All Implemented Interfaces:
- AspectInstanceFactory
- Direct Known Subclasses:
- SingletonMetadataAwareAspectInstanceFactory
public class SingletonAspectInstanceFactory
- extends Object
- implements AspectInstanceFactory
Simple implementation of AspectInstanceFactory backed
by a singleton.
- Since:
- 2.0
- Author:
- Rod Johnson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonAspectInstanceFactory
public SingletonAspectInstanceFactory(Object aspectInstance)
getAspectInstance
public final Object getAspectInstance()
- Description copied from interface:
AspectInstanceFactory
- Create an instance of this factory's aspect.
- Specified by:
getAspectInstance
in interface AspectInstanceFactory
getInstantiationCount
public final int getInstantiationCount()
- Description copied from interface:
AspectInstanceFactory
- Return the number of instantiations from this factory.
- Specified by:
getInstantiationCount
in interface AspectInstanceFactory
- Returns:
- the number of aspect instances created
Copyright © 2002-2006 The Spring Framework.