org.equilibriums.aop.utils.interceptor.delegate
Interface DelegateReturnValueHandler

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

public interface DelegateReturnValueHandler

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, List<Object> returnValues)
           
 boolean supports(Class<? extends Object> returnType, List<Object> returnValues)
          Called by DelegateInterceptor after all delegates are invoked with their retun values.
 

Method Detail

supports

boolean supports(Class<? extends Object> returnType,
                 List<Object> returnValues)
Called by DelegateInterceptor 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,
                      List<Object> returnValues)


Copyright © 2011. All Rights Reserved.