public class SingletonAspectInstanceFactory extends Object implements AspectInstanceFactory, Serializable
AspectInstanceFactory that is backed by a
 specified singleton object, returning the same instance for every
 getAspectInstance() call.SimpleAspectInstanceFactory, 
Serialized Form| Constructor and Description | 
|---|
| SingletonAspectInstanceFactory(Object aspectInstance)Create a new SingletonAspectInstanceFactory for the given aspect instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassLoader | getAspectClassLoader()Expose the aspect class loader that this factory uses. | 
| Object | getAspectInstance()Create an instance of this factory's aspect. | 
| int | getOrder()Determine the order for this factory's aspect instance,
 either an instance-specific order expressed through implementing
 the  Orderedinterface,
 or a fallback order. | 
| protected int | getOrderForAspectClass(Class<?> aspectClass)Determine a fallback order for the case that the aspect instance
 does not express an instance-specific order through implementing
 the  Orderedinterface. | 
public SingletonAspectInstanceFactory(Object aspectInstance)
aspectInstance - the singleton aspect instancepublic final Object getAspectInstance()
AspectInstanceFactorygetAspectInstance in interface AspectInstanceFactorynull)@Nullable public ClassLoader getAspectClassLoader()
AspectInstanceFactorygetAspectClassLoader in interface AspectInstanceFactorynull for the bootstrap loader)ClassUtils.getDefaultClassLoader()public int getOrder()
Ordered interface,
 or a fallback order.getOrder in interface org.springframework.core.OrderedOrdered, 
getOrderForAspectClass(java.lang.Class<?>)protected int getOrderForAspectClass(Class<?> aspectClass)
Ordered interface.
 The default implementation simply returns Ordered.LOWEST_PRECEDENCE.
aspectClass - the aspect class