run

inline fun <T : AutoCloseable> run(vararg environments: String): T

Top level function acting as a Kotlin shortcut allowing to write run<Foo>("env") instead of ApplicationContext.run(Foo::class.java, "env").

Return

The running bean

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

environments

The environments to use


inline fun <T : AutoCloseable> run(properties: Map<String, Any?>, vararg environments: String): T

Top level function acting as a Kotlin shortcut allowing to write run<Foo>(props, "env") instead of ApplicationContext.run(Foo::class.java, props, "env").

Return

The running bean

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

properties

Additional properties

environments

The environments to use


inline fun <T : AutoCloseable> run(propertySource: PropertySource, vararg environments: String): T

Top level function acting as a Kotlin shortcut allowing to write run<Foo>(props, "env") instead of ApplicationContext.run(Foo::class.java, props, "env").

Return

The running bean

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

propertySource

Additional properties

environments

The environments to use