ContextProvider

interface ContextProvider

Provides objects from the platform context for injection into action methods.

This interface abstracts the mechanism for retrieving platform-managed objects (such as Spring beans) so that the core framework remains runtime-agnostic.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun <T : Any> getFromContext(type: Class<T>): T?

Retrieve an object of the specified type from the context.

Link copied to clipboard
abstract fun hasInContext(type: Class<*>): Boolean

Check if an object of the specified type is available in the context.