Package de.bmiag.tapir.bootstrap
Class TapirBootstrapper
- java.lang.Object
-
- de.bmiag.tapir.bootstrap.TapirBootstrapper
-
public class TapirBootstrapper extends java.lang.Object
TheTapirBootstrapper
is responsible for bootstrapping the tapir Spring application context based on a givenTapirBootstrapStrategy
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description TapirBootstrapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.ConfigurableApplicationContext
bootstrap()
Bootstraps the Spring application by using theTapirFactoriesBootstrapStrategy
and returns theapplication context
.static org.springframework.context.ConfigurableApplicationContext
bootstrap(TapirBootstrapStrategy bootstrapStrategy)
Bootstraps the Spring application based on the givenTapirBootstrapStrategy
and returns theapplication context
.static org.springframework.context.ConfigurableApplicationContext
bootstrap(java.lang.Class<?> javaClass)
Bootstraps the Spring application based on the givenClass
and returns theapplication context
.
-
-
-
Method Detail
-
bootstrap
public static org.springframework.context.ConfigurableApplicationContext bootstrap()
Bootstraps the Spring application by using theTapirFactoriesBootstrapStrategy
and returns theapplication context
.- Returns:
- the Spring application context
- Since:
- 2.0.0
- See Also:
TapirFactoriesBootstrapStrategy
-
bootstrap
public static org.springframework.context.ConfigurableApplicationContext bootstrap(java.lang.Class<?> javaClass)
Bootstraps the Spring application based on the givenClass
and returns theapplication context
. If the given javaClass is annotated byTapirContextConfiguration
theTapirContextConfigurationBootstrapStrategy
is used, otherwiseTapirFactoriesBootstrapStrategy
is used.- Parameters:
javaClass
- The class which should be used for bootstrapping- Returns:
- the Spring application context
- Since:
- 2.0.0
- See Also:
TapirContextConfiguration
-
bootstrap
public static org.springframework.context.ConfigurableApplicationContext bootstrap(TapirBootstrapStrategy bootstrapStrategy)
Bootstraps the Spring application based on the givenTapirBootstrapStrategy
and returns theapplication context
.- Parameters:
bootstrapStrategy
- the bootstrap strategy- Returns:
- the Spring application context
- Since:
- 2.0.0
-
-