public class SingletonMetadataAwareAspectInstanceFactory extends SingletonAspectInstanceFactory implements MetadataAwareAspectInstanceFactory, SerializableSE
MetadataAwareAspectInstanceFactory
の実装で、SingletonAspectInstanceFactory.getAspectInstance()
呼び出しごとに同じインスタンスを返します。SimpleMetadataAwareAspectInstanceFactory
, 直列化された形式 HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
SingletonMetadataAwareAspectInstanceFactory(ObjectSE aspectInstance, StringSE aspectName) 指定されたアスペクトの新しい SingletonMetadataAwareAspectInstanceFactory を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | getAspectCreationMutex() このファクトリに最適な作成ミューテックスを返します。 |
AspectMetadata | getAspectMetadata() このファクトリのアスペクトの AspectJ AspectMetadata を返します。 |
protected int | getOrderForAspectClass(ClassSE<?> aspectClass) Ordered インターフェースを実装することにより、アスペクトインスタンスがインスタンス固有の順序を表現しない場合のフォールバック順序を決定します。 |
getAspectClassLoader, getAspectInstance, getOrder
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getAspectClassLoader, getAspectInstance
public final AspectMetadata getAspectMetadata()
MetadataAwareAspectInstanceFactory
MetadataAwareAspectInstanceFactory
の getAspectMetadata
public ObjectSE getAspectCreationMutex()
MetadataAwareAspectInstanceFactory
MetadataAwareAspectInstanceFactory
の getAspectCreationMutex
null
になります)protected int getOrderForAspectClass(ClassSE<?> aspectClass)
SingletonAspectInstanceFactory
Ordered
インターフェースを実装することにより、アスペクトインスタンスがインスタンス固有の順序を表現しない場合のフォールバック順序を決定します。 デフォルトの実装は、単に Ordered.LOWEST_PRECEDENCE
を返します。
SingletonAspectInstanceFactory
の getOrderForAspectClass
aspectClass
- アスペクトクラス