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 Object
final Object
protected abstract Object
invokeFirst
(Method method, Object[] args) protected abstract Object
invokeSecond
(Method method, Object[] args) void
setDecorator
(T decorator) void
setReturnDecoratorResult
(boolean returnDecoratorResult) protected boolean
-
Constructor Details
-
DecoratorInvocationHandler
-
-
Method Details
-
setDecorator
-
getTarget
-
getDecorator
-
invoke
- Specified by:
invoke
in 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()
-