Class SpringInstances
java.lang.Object
de.iip_ecosphere.platform.services.spring.SpringInstances
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static SpringCloudServiceSetupprivate static org.springframework.cloud.deployer.spi.app.AppDeployer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpringCloudServiceSetupReturns the configuration instance.(package private) static org.springframework.cloud.deployer.spi.app.AppDeployerReturns the deployer instance.static voidDefines the configuration instance.(package private) static voidsetDeployer(org.springframework.cloud.deployer.spi.app.AppDeployer depl) Defines the deployer instance.static voidsetServiceCmdArgs(List<String> arguments) Caching helper methods to allow early setting the additional service command arguments, e.g., for testing.
-
Field Details
-
deployer
private static org.springframework.cloud.deployer.spi.app.AppDeployer deployer -
config
-
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
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
Defines the configuration instance.- Parameters:
cfg- the configuration instance
-
setServiceCmdArgs
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
-