provideFeature

inline fun <T : AiutaFeature> provideFeature(): T?

Provides a feature instance by its type, returning null if not configured.

This method allows type-safe access to feature configurations using reified generics. It supports both top-level features and nested sub-features.

Return

The feature instance if configured, null otherwise

Parameters

T

The type of feature to retrieve

See also

Throws

if the feature type is not recognized