|
spring-aop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.aspectj.SimpleAspectInstanceFactory
org.springframework.aop.aspectj.annotation.SimpleMetadataAwareAspectInstanceFactory
public class SimpleMetadataAwareAspectInstanceFactory
Implementation of MetadataAwareAspectInstanceFactory that
creates a new instance of the specified aspect class for every
SimpleAspectInstanceFactory.getAspectInstance() call.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
SimpleMetadataAwareAspectInstanceFactory(java.lang.Class aspectClass,
java.lang.String aspectName)
Create a new SimpleMetadataAwareAspectInstanceFactory for the given aspect class. |
|
| Method Summary | |
|---|---|
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this factory's aspect. |
protected int |
getOrderForAspectClass(java.lang.Class<?> aspectClass)
Determine a fallback order for the case that the aspect instance does not express an instance-specific order through implementing the Ordered interface. |
| Methods inherited from class org.springframework.aop.aspectj.SimpleAspectInstanceFactory |
|---|
getAspectClass, getAspectClassLoader, getAspectInstance, getOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.aop.aspectj.AspectInstanceFactory |
|---|
getAspectClassLoader, getAspectInstance |
| Methods inherited from interface org.springframework.core.Ordered |
|---|
getOrder |
| Constructor Detail |
|---|
public SimpleMetadataAwareAspectInstanceFactory(java.lang.Class aspectClass,
java.lang.String aspectName)
aspectClass - the aspect classaspectName - the aspect name| Method Detail |
|---|
public final AspectMetadata getAspectMetadata()
MetadataAwareAspectInstanceFactory
getAspectMetadata in interface MetadataAwareAspectInstanceFactoryprotected int getOrderForAspectClass(java.lang.Class<?> aspectClass)
Ordered interface.
The default implementation simply returns Ordered.LOWEST_PRECEDENCE.
getOrderForAspectClass in class SimpleAspectInstanceFactoryaspectClass - the aspect class
|
spring-aop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||