Interface IPluginConfigurer

All Known Implementing Classes:
SbpDataSourceConfigurer, SbpJtaConfigurer, SbpSharedServiceConfigurer, SbpWebConfigurer

public interface IPluginConfigurer
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    afterBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext)
    Hook of finishing creating plugin ApplicationContext.
    default String[]
     
    default void
    onBootstrap(SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext)
    Hook of creating plugin ApplicationContext.
    default void
     
    default void
     
    default void
    releaseLeaveOverResource(org.pf4j.PluginWrapper plugin, org.springframework.context.support.GenericApplicationContext mainAppCtx)
    Release plugin leave-over resources in main ApplicationContext.
  • Method Details

    • excludeConfigurations

      default String[] 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, use afterBootstrap(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

      default void onStart(SpringBootPlugin plugin)
    • onStop

      default void onStop(SpringBootPlugin plugin)
    • releaseLeaveOverResource

      default void releaseLeaveOverResource(org.pf4j.PluginWrapper plugin, org.springframework.context.support.GenericApplicationContext mainAppCtx)
      Release plugin leave-over resources in main ApplicationContext.