AspectInstanceFactory that creates a new instance
of the specified aspect class for every getAspectInstance() call.
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | SimpleAspectInstanceFactory(Class<?>
the aspect class aspectClass)Create a new SimpleAspectInstanceFactory for the given aspect class. |
| Modifier and Type | Method and Description |
|---|---|
| public final Class | |
| 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 |
| aspectClass | back to summary |
|---|---|
| private final Class<?> aspectClass | |
| SimpleAspectInstanceFactory | back to summary |
|---|---|
| public SimpleAspectInstanceFactory(Class<?> aspectClass) Create a new SimpleAspectInstanceFactory for the given aspect class.
| |
| getAspectClass | back to summary |
|---|---|
| public final Class Return the specified aspect class (never | |
| 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
| |