public class SingletonMetadataAwareAspectInstanceFactory extends SingletonAspectInstanceFactory implements MetadataAwareAspectInstanceFactory, Serializable
MetadataAwareAspectInstanceFactory that is backed
by a specified singleton object, returning the same instance for every
SingletonAspectInstanceFactory.getAspectInstance() call.SimpleMetadataAwareAspectInstanceFactory,
序列化表格| 构造器和说明 |
|---|
SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance,
String aspectName)
Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAspectCreationMutex()
Return the best possible creation mutex for this factory.
|
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this factory's aspect.
|
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
Ordered interface. |
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 在接口中 MetadataAwareAspectInstanceFactorypublic Object getAspectCreationMutex()
MetadataAwareAspectInstanceFactorygetAspectCreationMutex 在接口中 MetadataAwareAspectInstanceFactorynull for no mutex to use)protected int getOrderForAspectClass(Class<?> aspectClass)
SingletonAspectInstanceFactoryOrdered interface.
The default implementation simply returns Ordered.LOWEST_PRECEDENCE.
getOrderForAspectClass 在类中 SingletonAspectInstanceFactoryaspectClass - the aspect class