public class SingletonMetadataAwareAspectInstanceFactory extends SingletonAspectInstanceFactory implements MetadataAwareAspectInstanceFactory
MetadataAwareAspectInstanceFactory that is backed
by a specified singleton object, returning the same instance for every
SingletonAspectInstanceFactory.getAspectInstance() call.SimpleMetadataAwareAspectInstanceFactoryHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance,
String aspectName)
Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect.
|
| Modifier and Type | Method and Description |
|---|---|
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this factory's aspect.
|
protected int |
getOrderForAspectClass(Class<?> aspectClass)
Check whether the aspect class carries an
Order annotation,
falling back to Ordered.LOWEST_PRECEDENCE. |
getAspectClassLoader, getAspectInstance, getOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAspectClassLoader, getAspectInstancepublic SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance, String aspectName)
aspectInstance - the singleton aspect instanceaspectName - the name of the aspectpublic final AspectMetadata getAspectMetadata()
MetadataAwareAspectInstanceFactorygetAspectMetadata in interface MetadataAwareAspectInstanceFactoryprotected int getOrderForAspectClass(Class<?> aspectClass)
Order annotation,
falling back to Ordered.LOWEST_PRECEDENCE.getOrderForAspectClass in class SingletonAspectInstanceFactoryaspectClass - the aspect classOrder