Package org.laxture.sbp.spring.boot
Class SharedJtaSpringBootstrap
- java.lang.Object
-
- org.springframework.boot.SpringApplication
-
- org.laxture.sbp.spring.boot.SpringBootstrap
-
- org.laxture.sbp.spring.boot.SharedJtaSpringBootstrap
-
public class SharedJtaSpringBootstrap extends SpringBootstrap
Introduce central Jta transaction management between app and plugins, which connect to very different databases with differentDataSource. Note that related AutoConfigurations have to be excluded explicitly to avoid duplicated resource retaining.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.laxture.sbp.spring.boot.SpringBootstrap
SpringBootstrap.ExcludeConfigurations
-
-
Field Summary
-
Fields inherited from class org.laxture.sbp.spring.boot.SpringBootstrap
BEAN_IMPORTED_BEAN_NAMES, BEAN_PLUGIN, DEFAULT_EXCLUDE_APPLICATION_LISTENERS, DEFAULT_EXCLUDE_CONFIGURATIONS
-
-
Constructor Summary
Constructors Constructor Description SharedJtaSpringBootstrap(SpringBootPlugin plugin, java.lang.Class<?>... primarySources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ConfigurableApplicationContextcreateApplicationContext()protected java.lang.String[]getExcludeConfigurations()Override this methods to customize excluded spring boot configuration-
Methods inherited from class org.laxture.sbp.spring.boot.SpringBootstrap
addPresetProperty, afterRefresh, bindToSpringApplication, configurePropertySources, getExcludeApplicationListeners, importBean, importBean, importBean, importBean, importBeanFromDependentPlugin, importBeanFromDependentPlugin, importBeanFromMainContext, importBeanFromMainContext, setListeners
-
Methods inherited from class org.springframework.boot.SpringApplication
addBootstrapRegistryInitializer, addInitializers, addListeners, addPrimarySources, applyInitializers, configureEnvironment, configureProfiles, createBeanDefinitionLoader, exit, getAdditionalProfiles, getAllSources, getApplicationLog, getApplicationStartup, getClassLoader, getEnvironmentPrefix, getInitializers, getListeners, getMainApplicationClass, getResourceLoader, getShutdownHandlers, getSources, getWebApplicationType, load, logStartupInfo, logStartupProfileInfo, main, postProcessApplicationContext, refresh, registerLoggedException, run, run, run, setAddCommandLineProperties, setAddConversionService, setAdditionalProfiles, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setApplicationContextFactory, setApplicationStartup, setBanner, setBannerMode, setBeanNameGenerator, setDefaultProperties, setDefaultProperties, setEnvironment, setEnvironmentPrefix, setHeadless, setInitializers, setLazyInitialization, setLogStartupInfo, setMainApplicationClass, setRegisterShutdownHook, setResourceLoader, setSources, setWebApplicationType
-
-
-
-
Constructor Detail
-
SharedJtaSpringBootstrap
public SharedJtaSpringBootstrap(SpringBootPlugin plugin, java.lang.Class<?>... primarySources)
-
-
Method Detail
-
getExcludeConfigurations
protected java.lang.String[] getExcludeConfigurations()
Description copied from class:SpringBootstrapOverride this methods to customize excluded spring boot configuration- Overrides:
getExcludeConfigurationsin classSpringBootstrap
-
createApplicationContext
public org.springframework.context.ConfigurableApplicationContext createApplicationContext()
- Overrides:
createApplicationContextin classSpringBootstrap
-
-