@ConfigurationProperties(value="spring.cloud.dataflow.application-properties") public class CommonApplicationProperties extends Object
spring.cloud.dataflow.application-properties.stream.[key].[value]
Or by providing an external properties file using the spring.cloud.dataflow.application-properties.stream-resource
reference. By default the META-INF/application-stream-common-properties-defaults.yml is used.
Similarly you can use the spring.cloud.dataflow.application-properties.task.[key].[value] or
spring.cloud.dataflow.application-properties.task-resource to define Task common properties. By default the
META-INF/application-task-common-properties-defaults.yml properties are applied.
Note: the stream-resource and task-resource approach allows to pass property placeholders (e.g. ${}) to the deployed
applications.
The direct stream.* and task.* approach will resolve such placeholders before they are passed to the deployed
applications.Constructor and Description |
---|
CommonApplicationProperties() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getStream() |
org.springframework.core.io.Resource |
getStreamResource() |
Optional<Properties> |
getStreamResourceProperties() |
Map<String,String> |
getTask() |
org.springframework.core.io.Resource |
getTaskResource() |
Optional<Properties> |
getTaskResourceProperties() |
static Optional<Properties> |
resourceToProperties(org.springframework.core.io.Resource resource) |
void |
setStream(Map<String,String> stream) |
void |
setStreamResource(org.springframework.core.io.Resource streamResource) |
void |
setTask(Map<String,String> task) |
void |
setTaskResource(org.springframework.core.io.Resource taskResource) |
public org.springframework.core.io.Resource getStreamResource()
public void setStreamResource(org.springframework.core.io.Resource streamResource)
public org.springframework.core.io.Resource getTaskResource()
public void setTaskResource(org.springframework.core.io.Resource taskResource)
public Optional<Properties> getStreamResourceProperties()
public Optional<Properties> getTaskResourceProperties()
public static Optional<Properties> resourceToProperties(org.springframework.core.io.Resource resource)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.