Package org.fest.reflect.field.decorator
Class PreDecorator<T>
- java.lang.Object
-
- org.fest.reflect.field.decorator.DecoratorInvocationHandler<T>
-
- org.fest.reflect.field.decorator.PreDecorator<T>
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class PreDecorator<T> extends DecoratorInvocationHandler<T>
A proxy for pre-decorating a field- Author:
- Ivan Hristov
-
-
Constructor Summary
Constructors Constructor Description PreDecorator(T target, T decorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetResult(java.lang.Object firstResult, java.lang.Object secondResult)protected java.lang.ObjectinvokeFirst(java.lang.reflect.Method method, java.lang.Object[] args)protected java.lang.ObjectinvokeSecond(java.lang.reflect.Method method, java.lang.Object[] args)-
Methods inherited from class org.fest.reflect.field.decorator.DecoratorInvocationHandler
getDecorator, getTarget, invoke, setDecorator, setReturnDecoratorResult, shouldReturnDecoratorResult
-
-
-
-
Method Detail
-
invokeFirst
protected java.lang.Object invokeFirst(java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Specified by:
invokeFirstin classDecoratorInvocationHandler<T>- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
invokeSecond
protected java.lang.Object invokeSecond(java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Specified by:
invokeSecondin classDecoratorInvocationHandler<T>- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getResult
protected java.lang.Object getResult(java.lang.Object firstResult, java.lang.Object secondResult)- Specified by:
getResultin classDecoratorInvocationHandler<T>
-
-