public class PreDecorator<T> extends DecoratorInvocationHandler<T>
Constructor and Description |
---|
PreDecorator(T target,
T decorator) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getResult(Object firstResult,
Object secondResult) |
protected Object |
invokeFirst(Method method,
Object[] args) |
protected Object |
invokeSecond(Method method,
Object[] args) |
getDecorator, getTarget, invoke, setDecorator, setReturnDecoratorResult, shouldReturnDecoratorResult
protected Object invokeFirst(Method method, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
invokeFirst
in class DecoratorInvocationHandler<T>
IllegalArgumentException
IllegalAccessException
InvocationTargetException
protected Object invokeSecond(Method method, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
invokeSecond
in class DecoratorInvocationHandler<T>
IllegalArgumentException
IllegalAccessException
InvocationTargetException
Copyright © 2007–2016. All rights reserved.