public abstract class Aspect
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Constructor and Description |
---|
Aspect(java.lang.Object target) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
after(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] args)
Runs after targets method.
|
abstract boolean |
afterException(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Throwable throwable)
Invoked after exception.
|
abstract boolean |
before(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object[] args)
Runs before targets method.
|
java.lang.Object |
getTarget()
Returns target object.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
public final java.lang.Object getTarget()
public abstract boolean before(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
true
if target method
should run.public abstract boolean after(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
true
if aspect method should
return value, otherwise null
.public abstract boolean afterException(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Throwable throwable)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
Copyright © 2003-present Jodd Team