org.fest.reflect.field.decorator
Class PostDecorator<T>

java.lang.Object
  extended by org.fest.reflect.field.decorator.DecoratorInvocationHandler<T>
      extended by org.fest.reflect.field.decorator.PostDecorator<T>
All Implemented Interfaces:
InvocationHandler

public class PostDecorator<T>
extends DecoratorInvocationHandler<T>

A proxy for post-decorating a field

Author:
Ivan Hristov

Constructor Summary
PostDecorator(T target, T decorator)
           
 
Method Summary
protected  Object getResult(Object firstResult, Object secondResult)
           
protected  Object invokeFirst(Method method, Object[] args)
           
protected  Object invokeSecond(Method method, Object[] args)
           
 
Methods inherited from class org.fest.reflect.field.decorator.DecoratorInvocationHandler
getDecorator, getTarget, invoke, setDecorator, setReturnDecoratorResult, shouldReturnDecoratorResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostDecorator

public PostDecorator(T target,
                     T decorator)
Method Detail

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.