get

inline fun <T : Any> Declarations.get(): Declaration<T>

Retrieves the declaration that corresponds to the given type parameter. This function does not check for the validity or coherence of the returned declaration.


inline fun <T : Any> InjectionEnvironment.get(qualifier: Qualifier = EmptyQualifier): T

Gets the component identified by the given type turned into an Identifier with an optional qualifier. Throws an exception if no component with this identifier exists.

Refer to InjectionEnvironment.get for more information.