SimpleFeature

interface SimpleFeature : Feature<Unit>

A simplified interface for Feature that cannot be configured.

In reality, the type of the configuration is Unit. If you need to use SimpleFeature in combination with ConfigurableFeature or other specializations of Feature, use Unit as the type parameter.

Properties

Link copied to clipboard
open val dependencies: Set<Feature<*>>

Dependencies for this feature. Dependencies are features that will be installed together with (but not necessarily before) your feature.

Link copied to clipboard
abstract val description: String

A short description of what your feature provides.

Link copied to clipboard
abstract val id: String

The identifier for this feature. Should be a lower case kebab-case string (e.g. this-is-my-feature).

Link copied to clipboard
abstract val name: String

The name for your feature, e.g. My Feature.

Functions

Link copied to clipboard
open override fun createConfigObject()

Create an object that will be used as the receiver parameter for install(MyFeature) { HERE }

Link copied to clipboard

Identical to Feature.install, but without a configuration object.

open override fun ExtensibleContextBuilderDsl.install(configuration: Unit)

Callback when this feature is installed onto an environment.