Top Description Fields Constructors Methods
org.springframework.aop.aspectj.annotation

public Class SimpleMetadataAwareAspectInstanceFactory

extends SimpleAspectInstanceFactory
implements MetadataAwareAspectInstanceFactory
Class Inheritance
All Implemented Interfaces
org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory, org.springframework.aop.aspectj.AspectInstanceFactory, org.springframework.core.Ordered
Imports
org.springframework.aop.aspectj.SimpleAspectInstanceFactory, org.springframework.core.Ordered, org.springframework.core.annotation.OrderUtils

Implementation of MetadataAwareAspectInstanceFactory that creates a new instance of the specified aspect class for every getAspectInstance() call.
Author
Juergen Hoeller
Since
2.0.4

Field Summary

Modifier and TypeField and Description
private final AspectMetadata

Constructor Summary

AccessConstructor and Description
public
SimpleMetadataAwareAspectInstanceFactory(Class<?>
the aspect class
aspectClass
,
String
the aspect name
aspectName
)

Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.

Method Summary

Modifier and TypeMethod and Description
public Object
public final AspectMetadata
protected int
getOrderForAspectClass(Class<?>
the aspect class
aspectClass
)

Overrides org.springframework.aop.aspectj.SimpleAspectInstanceFactory.getOrderForAspectClass.

Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing the org.springframework.core.Ordered interface.

Inherited from org.springframework.aop.aspectj.SimpleAspectInstanceFactory:
getAspectClassgetAspectClassLoadergetAspectInstancegetOrder

Field Detail

metadataback to summary
private final AspectMetadata metadata

Constructor Detail

SimpleMetadataAwareAspectInstanceFactoryback to summary
public SimpleMetadataAwareAspectInstanceFactory(Class<?> aspectClass, String aspectName)

Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class.

Parameters
aspectClass:Class<?>

the aspect class

aspectName:String

the aspect name

Method Detail

getAspectCreationMutexback to summary
public Object getAspectCreationMutex()

Implements org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory.getAspectCreationMutex.

Doc from org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory.getAspectCreationMutex.

Get the best possible creation mutex for this factory.

Returns:Object

the mutex object (may be null for no mutex to use)

Annotations
@Override
getAspectMetadataback to summary
public final AspectMetadata getAspectMetadata()

Implements org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory.getAspectMetadata.

Doc from org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory.getAspectMetadata.

Get the AspectJ AspectMetadata for this factory's aspect.

Returns:AspectMetadata

the aspect metadata

Annotations
@Override
getOrderForAspectClassback to summary
protected int getOrderForAspectClass(Class<?> aspectClass)

Overrides org.springframework.aop.aspectj.SimpleAspectInstanceFactory.getOrderForAspectClass.

Doc from org.springframework.aop.aspectj.SimpleAspectInstanceFactory.getOrderForAspectClass.

Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing the org.springframework.core.Ordered interface.

The default implementation simply returns Ordered.LOWEST_PRECEDENCE.

Parameters
aspectClass:Class<?>

the aspect class

Annotations
@Override