Interface ParameterInjector
-
- All Known Implementing Classes:
ParameterInjectorImpl
public interface ParameterInjectorTheParameterInjectorallows for adding additional parameter to the use case methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetParameterFor(Class<T> parameterClass, ParameterInjectionInformation injectionInformation)Method to retrieve the injected value for the parameter.booleanhasValueFor(Class<?> parameterClass)This method is called to check, if the current method parameter should be injected and not deserialized from the request map.
-
-
-
Method Detail
-
hasValueFor
boolean hasValueFor(Class<?> parameterClass)
This method is called to check, if the current method parameter should be injected and not deserialized from the request map.- Parameters:
parameterClass- theClassof the current parameter- Returns:
trueif the current parameter should be injected
-
getParameterFor
<T> T getParameterFor(Class<T> parameterClass, ParameterInjectionInformation injectionInformation)
Method to retrieve the injected value for the parameter.- Type Parameters:
T- the type of the parameter- Parameters:
parameterClass- theClassof the current parameterinjectionInformation- theParameterInjectionInformationholding the current use case class, method and more- Returns:
- the actual value to inject
-
-