Winter

The default WinterApplication object.

It is recommended for applications to use this directly and for libraries it is recommended to create a library specific object based on WinterApplication.

Example:

// configure application component
Winter.component {
// ... dependency declaration
}
// install a Winter plugin
Winter.installMyPlugin()
// open the application dependency graph
Winter.openGraph()

See also

for more details.

Properties

Link copied to clipboard

The application component.

Link copied to clipboard

Get the application graph.

Link copied to clipboard

Get the application graph if open otherwise null.

Link copied to clipboard

The plugins registered on the application.

Functions

Link copied to clipboard

Close the application graph.

Link copied to clipboard

Close the application graph if open otherwise do nothing.

Link copied to clipboard
fun component(qualifier: Qualifier = ApplicationScope, block: ComponentBuilderBlock)

Sets the application component by supplying an optional qualifier and a component builder block.

Link copied to clipboard

Create graph from component without registering it as application graph.

Link copied to clipboard

Get application graph if already open otherwise open and return it.

Link copied to clipboard

Open the application component.

Link copied to clipboard