DependencyMapExtension

Extension interface for dependency maps.

This can be used for supplying services through external means via a service locator for 3rd party libraries.

To do this, you must include a file in your resources under: META-INF/services/io.ktor.server.plugins.di.DependencyMapExtension

The file should contain the full name of the implementing class.

The implementing class must have a public constructor with no arguments.

Functions

Link copied to clipboard
abstract fun get(application: Application): DependencyMap

Gets the dependency map for the specified application.