Package org.fest.reflect.field.decorator
Class DecoratorInvocationHandler<T>
java.lang.Object
org.fest.reflect.field.decorator.DecoratorInvocationHandler<T>
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
PostDecorator,PreDecorator
- Author:
- Ivan Hristov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Objectfinal Objectprotected abstract ObjectinvokeFirst(Method method, Object[] args) protected abstract ObjectinvokeSecond(Method method, Object[] args) voidsetDecorator(T decorator) voidsetReturnDecoratorResult(boolean returnDecoratorResult) protected boolean
-
Constructor Details
-
DecoratorInvocationHandler
-
-
Method Details
-
setDecorator
-
getTarget
-
getDecorator
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
invokeFirst
protected abstract Object invokeFirst(Method method, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
invokeSecond
protected abstract Object invokeSecond(Method method, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
getResult
-
setReturnDecoratorResult
public void setReturnDecoratorResult(boolean returnDecoratorResult) -
shouldReturnDecoratorResult
protected boolean shouldReturnDecoratorResult()
-