Class CommonApplicationProperties
java.lang.Object
org.springframework.cloud.dataflow.server.config.apps.CommonApplicationProperties
@ConfigurationProperties("spring.cloud.dataflow.application-properties")
public class CommonApplicationProperties
extends Object
Common properties for applications deployed via Spring Cloud Data Flow.
Those properties are passed to all Stream or Task applications deployed via Spring Cloud Data Flow.
One can pass common Stream application properties directly using the stream properties:
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.- Author:
- Marius Bogoevici, Janne Valkealahti, Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTask()
static Optional<Properties>
resourceToProperties
(Resource resource) void
void
setStreamResource
(Resource streamResource) void
void
setTaskResource
(Resource taskResource)
-
Constructor Details
-
CommonApplicationProperties
public CommonApplicationProperties()
-
-
Method Details
-
getStream
-
setStream
-
getTask
-
setTask
-
getStreamResource
-
setStreamResource
-
getTaskResource
-
setTaskResource
-
getStreamResourceProperties
-
getTaskResourceProperties
-
resourceToProperties
-