Package org.laxture.sbp.spring.boot
Interface IPluginConfigurer
- All Known Implementing Classes:
SbpDataSourceConfigurer,SbpJtaConfigurer,SbpSharedServiceConfigurer,SbpWebConfigurer
public interface IPluginConfigurer
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Hook of finishing creating plugin ApplicationContext.default String[]default voidonBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Hook of creating plugin ApplicationContext.default voidonStart(SpringBootPlugin plugin) default voidonStop(SpringBootPlugin plugin) default voidreleaseLeaveOverResource(org.pf4j.PluginWrapper plugin, org.springframework.context.support.GenericApplicationContext mainAppCtx) Release plugin leave-over resources in main ApplicationContext.
-
Method Details
-
excludeConfigurations
-
onBootstrap
default void onBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Hook 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, useafterBootstrap(org.laxture.sbp.spring.boot.SpringBootstrap, org.springframework.context.support.GenericApplicationContext)instead. -
afterBootstrap
default void afterBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext) Hook of finishing creating plugin ApplicationContext. If the extension is relied on plugin beans, it should be done in this hook. -
onStart
-
onStop
-
releaseLeaveOverResource
default void releaseLeaveOverResource(org.pf4j.PluginWrapper plugin, org.springframework.context.support.GenericApplicationContext mainAppCtx) Release plugin leave-over resources in main ApplicationContext.
-