org.equilibriums.aop.utils.interceptor.composite.handlers
Class IndexedReturnValueHandler
java.lang.Object
org.equilibriums.aop.utils.interceptor.composite.handlers.IndexedReturnValueHandler
- All Implemented Interfaces:
- ReturnValueHandler
public class IndexedReturnValueHandler
- extends Object
- implements ReturnValueHandler
Simply retuns element from returnValues at specified index.
supports(java.lang.Class extends java.lang.Object>, java.lang.Object[]) method will always return true.
- Author:
- Tsolak Petrosian
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexedReturnValueHandler
public IndexedReturnValueHandler()
getIndex
public Integer getIndex()
setIndex
public void setIndex(Integer index)
supports
public boolean supports(Class<? extends Object> returnType,
Object[] returnValues)
- Description copied from interface:
ReturnValueHandler
- Called by
CompositeDelegateInterceptor after all delegates are invoked with their retun values.
- Specified by:
supports in interface ReturnValueHandler
- Returns:
- If true than
getReturnValue will be called with same returnType and returnValues.
getReturnValue
public Object getReturnValue(Class<? extends Object> returnType,
Object[] returnValues)
- Specified by:
getReturnValue in interface ReturnValueHandler
Copyright © 2011. All Rights Reserved.