Package io.jmix.core.impl.method
Class MethodArgumentsProvider
java.lang.Object
io.jmix.core.impl.method.MethodArgumentsProvider
Utility class to provide
Method
argument values from MethodArgumentResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Object
findProvidedArgument
(org.springframework.core.MethodParameter parameter, Object... providedArgs) protected static String
formatArgumentError
(org.springframework.core.MethodParameter param, String message) Object[]
getMethodArgumentValues
(Method method, Object... providedArgs) Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.
-
Constructor Details
-
MethodArgumentsProvider
-
-
Method Details
-
getMethodArgumentValues
Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.The resulting array will be passed into method annotated by
InstanceName
.- Throws:
Exception
-
findProvidedArgument
-
formatArgumentError
-