Class SpringInstances
- java.lang.Object
-
- de.iip_ecosphere.platform.services.spring.SpringInstances
-
public class SpringInstances extends java.lang.ObjectAllows bridging the Spring world with components loaded via JSL without that Spring creates the instance. Must be initialized before use ofSpringCloudServiceManager, e.g., throughStartupApplicationListener.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private static SpringCloudServiceSetupconfigprivate static org.springframework.cloud.deployer.spi.app.AppDeployerdeployerprivate static java.util.List<java.lang.String>serviceCmdArgs
-
Constructor Summary
Constructors Constructor Description SpringInstances()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpringCloudServiceSetupgetConfig()Returns the configuration instance.(package private) static org.springframework.cloud.deployer.spi.app.AppDeployergetDeployer()Returns the deployer instance.static voidsetConfig(SpringCloudServiceSetup cfg)Defines the configuration instance.(package private) static voidsetDeployer(org.springframework.cloud.deployer.spi.app.AppDeployer depl)Defines the deployer instance.static voidsetServiceCmdArgs(java.util.List<java.lang.String> arguments)Caching helper methods to allow early setting the additional service command arguments, e.g., for testing.
-
-
-
Field Detail
-
deployer
private static org.springframework.cloud.deployer.spi.app.AppDeployer deployer
-
config
private static SpringCloudServiceSetup config
-
serviceCmdArgs
private static java.util.List<java.lang.String> serviceCmdArgs
-
-
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
-
-