Class SimpleMetadataAwareAspectInstanceFactory
java.lang.Object
org.springframework.aop.aspectj.SimpleAspectInstanceFactory
org.springframework.aop.aspectj.annotation.SimpleMetadataAwareAspectInstanceFactory
- All Implemented Interfaces:
- MetadataAwareAspectInstanceFactory,- AspectInstanceFactory,- Ordered
public class SimpleMetadataAwareAspectInstanceFactory
extends SimpleAspectInstanceFactory
implements MetadataAwareAspectInstanceFactory
Implementation of 
MetadataAwareAspectInstanceFactory that
 creates a new instance of the specified aspect class for every
 SimpleAspectInstanceFactory.getAspectInstance() call.- Since:
- 2.0.4
- Author:
- Juergen Hoeller
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass, String aspectName) Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.
- 
Method SummaryModifier and TypeMethodDescriptionGet the best possible creation mutex for this factory.final AspectMetadataGet the AspectJ AspectMetadata for this factory's aspect.protected intgetOrderForAspectClass(Class<?> aspectClass) Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing theOrderedinterface.Methods inherited from class org.springframework.aop.aspectj.SimpleAspectInstanceFactorygetAspectClass, getAspectClassLoader, getAspectInstance, getOrderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.aspectj.AspectInstanceFactorygetAspectClassLoader, getAspectInstance
- 
Constructor Details- 
SimpleMetadataAwareAspectInstanceFactoryCreate a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.- Parameters:
- aspectClass- the aspect class
- aspectName- the aspect name
 
 
- 
- 
Method Details- 
getAspectMetadataDescription copied from interface:MetadataAwareAspectInstanceFactoryGet the AspectJ AspectMetadata for this factory's aspect.- Specified by:
- getAspectMetadatain interface- MetadataAwareAspectInstanceFactory
- Returns:
- the aspect metadata
 
- 
getAspectCreationMutexDescription copied from interface:MetadataAwareAspectInstanceFactoryGet the best possible creation mutex for this factory.- Specified by:
- getAspectCreationMutexin interface- MetadataAwareAspectInstanceFactory
- Returns:
- the mutex object (may be nullfor no mutex to use)
 
- 
getOrderForAspectClassDescription copied from class:SimpleAspectInstanceFactoryDetermine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing theOrderedinterface.The default implementation simply returns Ordered.LOWEST_PRECEDENCE.- Overrides:
- getOrderForAspectClassin class- SimpleAspectInstanceFactory
- Parameters:
- aspectClass- the aspect class
 
 
-