ProvidedArgumentResolver

Resolves action method parameters annotated with Provided from a ContextProvider.

This resolver enables injection of platform-managed objects (such as Spring beans) into action methods, allowing state classes to remain static while still accessing services and components from their enclosing class or the broader application context.

Parameters

contextProvider

the provider that supplies objects from the platform context

See also

Constructors

Link copied to clipboard
constructor(contextProvider: ContextProvider)

Functions

Link copied to clipboard
open override fun resolveArgument(javaParameter: Parameter, kotlinParameter: <Error class: unknown class>?, operationContext: OperationContext): Any?

Resolve an action method parameter into an argument value. An OperationContext provides access to the context of the current action.

Link copied to clipboard
open fun resolveInputBinding(javaParameter: Parameter, kotlinParameter: <Error class: unknown class>?): Set<IoBinding>
Link copied to clipboard
open override fun supportsParameter(javaParameter: Parameter, kotlinParameter: <Error class: unknown class>?, operationContext: OperationContext?): Boolean

Whether the given method parameter is supported by this resolver.