|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.aspectj.annotation.LazySingletonAspectInstanceFactoryDecorator
public class LazySingletonAspectInstanceFactoryDecorator
Decorator to cause a MetadataAwareAspectInstanceFactory to instantiate only once.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
LazySingletonAspectInstanceFactoryDecorator(MetadataAwareAspectInstanceFactory maaif)
Create a new lazily initializing decorator for the given AspectInstanceFactory. |
|
| Method Summary | |
|---|---|
ClassLoader |
getAspectClassLoader()
Expose the aspect class loader that this factory uses. |
Object |
getAspectInstance()
Create an instance of this factory's aspect. |
AspectMetadata |
getAspectMetadata()
Return the AspectJ AspectMetadata for this factory's aspect. |
int |
getOrder()
Return the order value of this object, with a higher value meaning greater in terms of sorting. |
boolean |
isMaterialized()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LazySingletonAspectInstanceFactoryDecorator(MetadataAwareAspectInstanceFactory maaif)
maaif - the MetadataAwareAspectInstanceFactory to decorate| Method Detail |
|---|
public Object getAspectInstance()
AspectInstanceFactory
getAspectInstance in interface AspectInstanceFactorynull)public boolean isMaterialized()
public ClassLoader getAspectClassLoader()
AspectInstanceFactory
getAspectClassLoader in interface AspectInstanceFactorynull)public AspectMetadata getAspectMetadata()
MetadataAwareAspectInstanceFactory
getAspectMetadata in interface MetadataAwareAspectInstanceFactorypublic int getOrder()
OrderedNormally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).
getOrder in interface Orderedpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||