MetadataAwareAspectInstanceFactory that is backed
by a specified singleton object, returning the same instance for every
getAspectInstance() call.
SimpleMetadataAwareAspectInstanceFactory
| Modifier and Type | Field and Description |
|---|---|
| private final AspectMetadata |
| Access | Constructor and Description |
|---|---|
| public | SingletonMetadataAwareAspectInstanceFactory(Object
the singleton aspect instance aspectInstance, String the name of the aspect aspectName)Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getAspectCreationMutex()
Implements org. |
| public final AspectMetadata | getAspectMetadata()
Implements org. |
| protected int | getOrderForAspectClass(Class<?>
the aspect class aspectClass)Overrides org. org. interface.
|
| metadata | back to summary |
|---|---|
| private final AspectMetadata metadata | |
| SingletonMetadataAwareAspectInstanceFactory | back to summary |
|---|---|
| public SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance, String aspectName) Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect. | |
| getAspectCreationMutex | back to summary |
|---|---|
| public Object getAspectCreationMutex() Implements org. Doc from org. Get the best possible creation mutex for this factory. | |
| getAspectMetadata | back to summary |
|---|---|
| public final AspectMetadata getAspectMetadata() Implements org. Doc from org. Get the AspectJ AspectMetadata for this factory's aspect.
| |
| getOrderForAspectClass | back to summary |
|---|---|
| protected int getOrderForAspectClass(Class<?> aspectClass) Overrides org. Doc from org. Determine a fallback order for the case that the aspect instance
does not express an instance-specific order through implementing
the The default implementation simply returns | |