winter / io.jentz.winter.plugin / Plugin

Plugin

interface Plugin

The interface for Winter plugins.

Functions

graphClose

abstract fun graphClose(graph: Graph): Unit

This is called whenever a Graph is going to be closed.

graphInitialized

abstract fun graphInitialized(graph: Graph): Unit

This is called when a Graph is initialized and before eager dependencies are resolved.

graphInitializing

abstract fun graphInitializing(parentGraph: Graph?, builder: Component.Builder): Unit

This is called when a Graph is initializing and allows to manipulate (derive) the backing io.jentz.winter.Component.

postConstruct

abstract fun postConstruct(graph: Graph, scope: Scope, instance: Any): Unit

This is called whenever a new instance was created.

Inheritors

SimplePlugin

open class SimplePlugin : Plugin

Empty implementation of Plugin.