|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.aspectj.SimpleAspectInstanceFactory
public class SimpleAspectInstanceFactory
Implementation of AspectInstanceFactory
that creates a new instance
of the specified aspect class for every getAspectInstance()
call.
Field Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
SimpleAspectInstanceFactory(Class aspectClass)
Create a new SimpleAspectInstanceFactory for the given aspect class. |
Method Summary | |
---|---|
Class |
getAspectClass()
Return the specified aspect class (never null ). |
ClassLoader |
getAspectClassLoader()
Expose the aspect class loader that this factory uses. |
Object |
getAspectInstance()
Create an instance of this factory's aspect. |
int |
getOrder()
Determine the order for this factory's aspect instance, either an instance-specific order expressed through implementing the Ordered interface,
or a fallback order. |
protected int |
getOrderForAspectClass(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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAspectInstanceFactory(Class aspectClass)
aspectClass
- the aspect classMethod Detail |
---|
public final Class getAspectClass()
null
).
public final Object getAspectInstance()
AspectInstanceFactory
getAspectInstance
in interface AspectInstanceFactory
null
)public ClassLoader getAspectClassLoader()
AspectInstanceFactory
getAspectClassLoader
in interface AspectInstanceFactory
null
)public int getOrder()
Ordered
interface,
or a fallback order.
getOrder
in interface Ordered
Ordered
,
getOrderForAspectClass(java.lang.Class)
protected int getOrderForAspectClass(Class aspectClass)
Ordered
interface.
The default implementation simply returns Ordered.LOWEST_PRECEDENCE
.
aspectClass
- the aspect class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |