AspectInstanceFactory that is backed by a
specified singleton object, returning the same instance for every
getAspectInstance() call.
SimpleAspectInstanceFactory
| Modifier and Type | Field and Description |
|---|---|
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | SingletonAspectInstanceFactory(Object
the singleton aspect instance aspectInstance)Create a new SingletonAspectInstanceFactory for the given aspect instance. |
| Modifier and Type | Method and Description |
|---|---|
| public ClassLoader | getAspectClassLoader()
Implements org. Expose the aspect class loader that this factory uses. |
| public final Object | getAspectInstance()
Implements org. Create an instance of this factory's aspect. |
| public int | getOrder()
Implements org. Determine the order for this factory's aspect instance,
either an instance-specific order expressed through implementing
the |
| protected int | getOrderForAspectClass(Class<?>
the aspect class aspectClass)Determine a fallback order for the case that the aspect instance
does not express an instance-specific order through implementing
the |
| aspectInstance | back to summary |
|---|---|
| private final Object aspectInstance | |
| SingletonAspectInstanceFactory | back to summary |
|---|---|
| public SingletonAspectInstanceFactory(Object aspectInstance) Create a new SingletonAspectInstanceFactory for the given aspect instance.
| |
| getAspectClassLoader | back to summary |
|---|---|
| public ClassLoader getAspectClassLoader() Implements org. Doc from org. Expose the aspect class loader that this factory uses.
| |
| getAspectInstance | back to summary |
|---|---|
| public final Object getAspectInstance() Implements org. Doc from org. Create an instance of this factory's aspect. | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Determine the order for this factory's aspect instance,
either an instance-specific order expressed through implementing
the
| |
| getOrderForAspectClass | back to summary |
|---|---|
| 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 The default implementation simply returns
| |