buildAndStart

inline fun <T> buildAndStart(): ApplicationContext

Top level function acting as a Kotlin shortcut allowing to write buildAndStart<Foo>(mapOf("foo" to "bar")) instead of ApplicationContext.build(Foo::class.java)propertySources(propSource).start().

Return

The running ApplicationContext

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type


inline fun <T> buildAndStart(vararg propertySources: PropertySource): ApplicationContext

Top level function acting as a Kotlin shortcut allowing to write buildAndStart<Foo>(mapOf("foo" to "bar")) instead of ApplicationContext.build(Foo::class.java)propertySources(propSource).start().

Return

The running ApplicationContext

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

propertySources

The property sources to include


inline fun <T> buildAndStart(vararg environments: String): ApplicationContext

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

Return

The running ApplicationContext

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

environments

The environments to use


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

Top level function acting as a Kotlin shortcut allowing to write buildAndStart<Foo>("env") instead of ApplicationContext.build(mapOf("foo" to "bar"), "env").mainClass(Foo::class.java).start().

Return

The running ApplicationContext

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

properties

Additional properties

environments

The environments to use


inline fun <T> buildAndStart(propertySource: PropertySource, vararg environments: String): ApplicationContext

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

Return

The running ApplicationContext

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The type

propertySource

The property source to include

environments

The environments to use