Class ParameterInjectorImpl
- java.lang.Object
-
- de.quantummaid.eventmaid.useCases.useCaseAdapter.parameterInjecting.ParameterInjectorImpl
-
- All Implemented Interfaces:
ParameterInjector
public final class ParameterInjectorImpl extends Object implements ParameterInjector
-
-
Constructor Summary
Constructors Constructor Description ParameterInjectorImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean hasValueFor(Class<?> parameterClass)
Description copied from interface:ParameterInjectorThis method is called to check, if the current method parameter should be injected and not deserialized from the request map.- Specified by:
hasValueForin interfaceParameterInjector- Parameters:
parameterClass- theClassof the current parameter- Returns:
trueif the current parameter should be injected
-
getParameterFor
public <T> T getParameterFor(Class<T> parameterClass, ParameterInjectionInformation injectionInformation)
Description copied from interface:ParameterInjectorMethod to retrieve the injected value for the parameter.- Specified by:
getParameterForin interfaceParameterInjector- 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
-
-