|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.aspectj.SingletonAspectInstanceFactory
org.springframework.aop.aspectj.annotation.SingletonMetadataAwareAspectInstanceFactory
public class SingletonMetadataAwareAspectInstanceFactory
Implementation of MetadataAwareAspectInstanceFactory that is backed
by a specified singleton object, returning the same instance for every
SingletonAspectInstanceFactory.getAspectInstance() call.
SimpleMetadataAwareAspectInstanceFactory| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
SingletonMetadataAwareAspectInstanceFactory(java.lang.Object aspectInstance,
java.lang.String aspectName)
Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect. |
|
| Method Summary | |
|---|---|
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this factory's aspect. |
protected int |
getOrderForAspectClass(java.lang.Class<?> aspectClass)
Check whether the aspect class carries an Order annotation,
falling back to Ordered.LOWEST_PRECEDENCE. |
| Methods inherited from class org.springframework.aop.aspectj.SingletonAspectInstanceFactory |
|---|
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 SingletonMetadataAwareAspectInstanceFactory(java.lang.Object aspectInstance,
java.lang.String aspectName)
aspectInstance - the singleton aspect instanceaspectName - the name of the aspect| Method Detail |
|---|
public final AspectMetadata getAspectMetadata()
MetadataAwareAspectInstanceFactory
getAspectMetadata in interface MetadataAwareAspectInstanceFactoryprotected int getOrderForAspectClass(java.lang.Class<?> aspectClass)
Order annotation,
falling back to Ordered.LOWEST_PRECEDENCE.
getOrderForAspectClass in class SingletonAspectInstanceFactoryaspectClass - the aspect classOrder
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||