com.acciente.commons.reflect
Interface ParameterProvider
public interface ParameterProvider
This interface is used by the Invoker to allow its caller to provide parameter
values based on parameter type. The Invoker calls the getParameter() method on
the provided implementation once for each argument of a constructor or method
for which the Invoker needs a value. The Invoker will not call getParameter()
if the a value for a parameter could be determined based on the aoArgs array
passed to an Invoker method.
- Author:
- Adinath Raveendra Raj
- See Also:
Invoker
Method Summary |
java.lang.Object |
getParameter(java.lang.Class oParamClass)
Returns the value for a parameter given the Parameter type |
getParameter
java.lang.Object getParameter(java.lang.Class oParamClass)
throws ParameterProviderException
- Returns the value for a parameter given the Parameter type
- Parameters:
oParamClass
- a class object representing the parameter type
- Returns:
- null or an object representing the parameter type
- Throws:
ParameterProviderException
- should be used to wrap any exception that the implementation class may wish to propagate
Copyright © 2008-2011 Acciente, LLC. All Rights Reserved.