类 SimpleMetadataAwareAspectInstanceFactory
- java.lang.Object
- org.springframework.aop.aspectj.SimpleAspectInstanceFactory
- org.springframework.aop.aspectj.annotation.SimpleMetadataAwareAspectInstanceFactory
public class SimpleMetadataAwareAspectInstanceFactory extends SimpleAspectInstanceFactory implements MetadataAwareAspectInstanceFactory
Implementation ofMetadataAwareAspectInstanceFactory
that creates a new instance of the specified aspect class for everySimpleAspectInstanceFactory.getAspectInstance()
call.- 从以下版本开始:
- 2.0.4
- 作者:
- Juergen Hoeller
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
构造器概要
构造器 构造器 说明 SimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass, String aspectName)
Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 theOrdered
interface.从类继承的方法 org.springframework.aop.aspectj.SimpleAspectInstanceFactory
getAspectClass, getAspectClassLoader, getAspectInstance, getOrder
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.aop.aspectj.AspectInstanceFactory
getAspectClassLoader, getAspectInstance
构造器详细资料
SimpleMetadataAwareAspectInstanceFactory
public SimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass, String aspectName)
Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.- 参数:
aspectClass
- the aspect classaspectName
- the aspect name
方法详细资料
getAspectMetadata
public final AspectMetadata getAspectMetadata()
从接口复制的说明:MetadataAwareAspectInstanceFactory
Return the AspectJ AspectMetadata for this factory's aspect.- 指定者:
getAspectMetadata
在接口中MetadataAwareAspectInstanceFactory
- 返回:
- the aspect metadata
getAspectCreationMutex
public Object getAspectCreationMutex()
从接口复制的说明:MetadataAwareAspectInstanceFactory
Return the best possible creation mutex for this factory.- 指定者:
getAspectCreationMutex
在接口中MetadataAwareAspectInstanceFactory
- 返回:
- the mutex object (may be
null
for no mutex to use)
getOrderForAspectClass
protected int getOrderForAspectClass(Class<?> aspectClass)
从类复制的说明:SimpleAspectInstanceFactory
Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing theOrdered
interface.The default implementation simply returns
Ordered.LOWEST_PRECEDENCE
.- 覆盖:
getOrderForAspectClass
在类中SimpleAspectInstanceFactory
- 参数:
aspectClass
- the aspect class