Class SpringInstances

java.lang.Object
de.iip_ecosphere.platform.services.spring.SpringInstances

public class SpringInstances extends Object
Allows bridging the Spring world with components loaded via JSL without that Spring creates the instance. Must be initialized before use of SpringCloudServiceManager, e.g., through StartupApplicationListener.
Author:
Holger Eichelberger, SSE
  • Field Details

    • deployer

      private static org.springframework.cloud.deployer.spi.app.AppDeployer deployer
    • config

      private static SpringCloudServiceSetup config
    • serviceCmdArgs

      private static List<String> serviceCmdArgs
  • Constructor Details

    • SpringInstances

      public SpringInstances()
  • Method Details

    • getDeployer

      static org.springframework.cloud.deployer.spi.app.AppDeployer getDeployer()
      Returns the deployer instance.
      Returns:
      the deployer instance
    • getConfig

      public static SpringCloudServiceSetup getConfig()
      Returns the configuration instance.
      Returns:
      the configuration instance
    • setDeployer

      static void setDeployer(org.springframework.cloud.deployer.spi.app.AppDeployer depl)
      Defines the deployer instance.
      Parameters:
      depl - the deployer instance
    • setConfig

      public static void setConfig(SpringCloudServiceSetup cfg)
      Defines the configuration instance.
      Parameters:
      cfg - the configuration instance
    • setServiceCmdArgs

      public static void setServiceCmdArgs(List<String> arguments)
      Caching helper methods to allow early setting the additional service command arguments, e.g., for testing. May be set later when #setConfig(SpringCloudServiceSetup) is called.
      Parameters:
      arguments - the arguments