Class SbpJpaConfigurer

java.lang.Object
org.laxture.sbp.spring.boot.SbpJpaConfigurer
All Implemented Interfaces:
org.laxture.sbp.spring.boot.IPluginConfigurer

public class SbpJpaConfigurer extends Object implements org.laxture.sbp.spring.boot.IPluginConfigurer
Introduce registrable JPA configuration. Note that related AutoConfigurations have to be excluded explicitly to avoid duplicated resource retaining.
  • Constructor Details

    • SbpJpaConfigurer

      public SbpJpaConfigurer(String[] modelPackages)
  • Method Details

    • excludeConfigurations

      public String[] excludeConfigurations()
      Specified by:
      excludeConfigurations in interface org.laxture.sbp.spring.boot.IPluginConfigurer
    • onBootstrap

      public void onBootstrap(org.laxture.sbp.spring.boot.SpringBootstrap bootstrap, org.springframework.context.support.GenericApplicationContext pluginApplicationContext)
      Specified by:
      onBootstrap in interface org.laxture.sbp.spring.boot.IPluginConfigurer
    • onStart

      public void onStart(org.laxture.sbp.SpringBootPlugin plugin)
      Specified by:
      onStart in interface org.laxture.sbp.spring.boot.IPluginConfigurer
    • onStop

      public void onStop(org.laxture.sbp.SpringBootPlugin plugin)
      Specified by:
      onStop in interface org.laxture.sbp.spring.boot.IPluginConfigurer
    • releaseLeaveOverResource

      public void releaseLeaveOverResource(org.pf4j.PluginWrapper plugin, org.springframework.context.support.GenericApplicationContext mainAppCtx)
      Specified by:
      releaseLeaveOverResource in interface org.laxture.sbp.spring.boot.IPluginConfigurer