类 SingletonMetadataAwareAspectInstanceFactory
java.lang.Object
infra.aop.aspectj.SingletonAspectInstanceFactory
infra.aop.aspectj.annotation.SingletonMetadataAwareAspectInstanceFactory
- 所有已实现的接口:
MetadataAwareAspectInstanceFactory,AspectInstanceFactory,infra.core.Ordered,Serializable
public class SingletonMetadataAwareAspectInstanceFactory
extends SingletonAspectInstanceFactory
implements MetadataAwareAspectInstanceFactory, Serializable
Implementation of
MetadataAwareAspectInstanceFactory that is backed
by a specified singleton object, returning the same instance for every
SingletonAspectInstanceFactory.getAspectInstance() call.- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
-
字段概要
字段从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance, String aspectName) Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect. -
方法概要
修饰符和类型方法说明Return the best possible creation mutex for this factory.final AspectMetadataReturn 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.从类继承的方法 infra.aop.aspectj.SingletonAspectInstanceFactory
getAspectClassLoader, getAspectInstance, getOrder从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 infra.aop.aspectj.AspectInstanceFactory
getAspectClassLoader, getAspectInstance从接口继承的方法 infra.core.Ordered
getOrder
-
字段详细资料
-
metadata
-
-
构造器详细资料
-
SingletonMetadataAwareAspectInstanceFactory
Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect.- 参数:
aspectInstance- the singleton aspect instanceaspectName- the name of the aspect
-
-
方法详细资料
-
getAspectMetadata
从接口复制的说明:MetadataAwareAspectInstanceFactoryReturn the AspectJ AspectMetadata for this factory's aspect.- 指定者:
getAspectMetadata在接口中MetadataAwareAspectInstanceFactory- 返回:
- the aspect metadata
-
getAspectCreationMutex
从接口复制的说明:MetadataAwareAspectInstanceFactoryReturn the best possible creation mutex for this factory.- 指定者:
getAspectCreationMutex在接口中MetadataAwareAspectInstanceFactory- 返回:
- the mutex object (may be
nullfor no mutex to use)
-
getOrderForAspectClass
从类复制的说明:SingletonAspectInstanceFactoryDetermine 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.- 覆盖:
getOrderForAspectClass在类中SingletonAspectInstanceFactory- 参数:
aspectClass- the aspect class
-