buildAndStart
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
The type
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
The type
The property sources to include
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
The type
The environments to use
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
The type
Additional properties
The environments to use
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
The type
The property source to include
The environments to use