org.equilibriums.aop.utils.interceptor.composite
Interface ReturnValueHandler

All Known Implementing Classes:
BooleanReturnValueHandler, FirstReturnValueHandler, IndexedReturnValueHandler, LastReturnValueHandler, MergeCollectionReturnValueHandler, MergeMapReturnValueHandler, ObjectCollectionReturnValueHandler

public interface ReturnValueHandler

Strategy interface to be implemented to do custom handling of return values from calls to delegates.

See actual implementation as an examples.

Author:
Tsolak Petrosian

Method Summary
 Object getReturnValue(Class<? extends Object> returnType, Object[] returnValues)
           
 boolean supports(Class<? extends Object> returnType, Object[] returnValues)
          Called by CompositeDelegateInterceptor after all delegates are invoked with their retun values.
 

Method Detail

supports

boolean supports(Class<? extends Object> returnType,
                 Object[] returnValues)
Called by CompositeDelegateInterceptor after all delegates are invoked with their retun values.

Parameters:
returnType -
returnValues -
Returns:
If true than getReturnValue will be called with same returnType and returnValues.

getReturnValue

Object getReturnValue(Class<? extends Object> returnType,
                      Object[] returnValues)


Copyright © 2011. All Rights Reserved.