Class SpringInstances


  • public class SpringInstances
    extends java.lang.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
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringInstances()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SpringCloudServiceSetup getConfig()
      Returns the configuration instance.
      (package private) static org.springframework.cloud.deployer.spi.app.AppDeployer getDeployer()
      Returns the deployer instance.
      static void setConfig​(SpringCloudServiceSetup cfg)
      Defines the configuration instance.
      (package private) static void setDeployer​(org.springframework.cloud.deployer.spi.app.AppDeployer depl)
      Defines the deployer instance.
      static void setServiceCmdArgs​(java.util.List<java.lang.String> arguments)
      Caching helper methods to allow early setting the additional service command arguments, e.g., for testing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • deployer

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

        private static java.util.List<java.lang.String> serviceCmdArgs
    • Constructor Detail

      • SpringInstances

        public SpringInstances()
    • Method Detail

      • 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​(java.util.List<java.lang.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