Class SbpJtaConfigurer
java.lang.Object
org.laxture.sbp.spring.boot.configurer.SbpJtaConfigurer
- All Implemented Interfaces:
IPluginConfigurer
Introduce central Jta transaction management between app and plugins, which
connect to very different databases with different
DataSource.
“““
Note that related AutoConfigurations have to be excluded explicitly to avoid
duplicated resource retaining.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]voidonBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Hook of creating plugin ApplicationContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.laxture.sbp.spring.boot.IPluginConfigurer
afterBootstrap, onStart, onStop, releaseLeaveOverResource
-
Constructor Details
-
SbpJtaConfigurer
public SbpJtaConfigurer()
-
-
Method Details
-
excludeConfigurations
- Specified by:
excludeConfigurationsin interfaceIPluginConfigurer
-
onBootstrap
public void onBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Description copied from interface:IPluginConfigurerHook of creating plugin ApplicationContext. Could import beans from main ApplicationContext or register extension to main ApplicationContext. Note that plugin ApplicationContext is not yet ready in this hook, useIPluginConfigurer.afterBootstrap(org.laxture.sbp.spring.boot.SpringBootstrap, org.springframework.context.support.GenericApplicationContext)instead.- Specified by:
onBootstrapin interfaceIPluginConfigurer
-