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:
- InvocationHandler
public class PreDecorator<T>
- extends DecoratorInvocationHandler<T>
A proxy for pre-decorating a field
- Author:
- Ivan Hristov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreDecorator
public PreDecorator(T target,
T decorator)
invokeFirst
protected Object invokeFirst(Method method,
Object[] args)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
- Specified by:
invokeFirst in class DecoratorInvocationHandler<T>
- Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
invokeSecond
protected Object invokeSecond(Method method,
Object[] args)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
- Specified by:
invokeSecond in class DecoratorInvocationHandler<T>
- Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
getResult
protected Object getResult(Object firstResult,
Object secondResult)
- Specified by:
getResult in class DecoratorInvocationHandler<T>
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.