Package org.springframework.aop.aspectj
Class SimpleAspectInstanceFactory
java.lang.Object
org.springframework.aop.aspectj.SimpleAspectInstanceFactory
- All Implemented Interfaces:
- AspectInstanceFactory,- Ordered
- Direct Known Subclasses:
- SimpleMetadataAwareAspectInstanceFactory
Implementation of 
AspectInstanceFactory that creates a new instance
 of the specified aspect class for every getAspectInstance() call.- Since:
- 2.0.4
- Author:
- Juergen Hoeller
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleAspectInstanceFactory(Class<?> aspectClass) Create a new SimpleAspectInstanceFactory for the given aspect class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal Class<?>Return the specified aspect class (nevernull).Expose the aspect class loader that this factory uses.final ObjectCreate an instance of this factory's aspect.intgetOrder()Determine the order for this factory's aspect instance, either an instance-specific order expressed through implementing theOrderedinterface, or a fallback order.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.
- 
Constructor Details- 
SimpleAspectInstanceFactoryCreate a new SimpleAspectInstanceFactory for the given aspect class.- Parameters:
- aspectClass- the aspect class
 
 
- 
- 
Method Details- 
getAspectClassReturn the specified aspect class (nevernull).
- 
getAspectInstanceDescription copied from interface:AspectInstanceFactoryCreate an instance of this factory's aspect.- Specified by:
- getAspectInstancein interface- AspectInstanceFactory
- Returns:
- the aspect instance (never null)
 
- 
getAspectClassLoaderDescription copied from interface:AspectInstanceFactoryExpose the aspect class loader that this factory uses.- Specified by:
- getAspectClassLoaderin interface- AspectInstanceFactory
- Returns:
- the aspect class loader (or nullfor the bootstrap loader)
- See Also:
 
- 
getOrderpublic int getOrder()Determine the order for this factory's aspect instance, either an instance-specific order expressed through implementing theOrderedinterface, or a fallback order.
- 
getOrderForAspectClassDetermine 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.- Parameters:
- aspectClass- the aspect class
 
 
-