System Information
Spring Cloud Data Flow Cloud Foundry: v1.1.0.RELEASE Pivotal Cloud Foundry: v1.7.12 CF Client (Windows): cf.exe version 6.23.1+a70deb3.2017-01-13 cf-v3-plugin: 0.6.7
I would like to inject the stream name into a bean defined in my custom source module. From reviewing the /env
end-point of a deployed stream I found the SPRING_CLOUD_APPLICATION_GROUP
system property so I've injected this into my bean like so.
/**
* application name
*/
@Value("#{ systemProperties['SPRING_CLOUD_APPLICATION_GROUP'] }")
private String applicationName;
The issue here is that this appears to be tied to the Cloud Foundry deployer, which from my perspective is not good for portability.
In Spring XD the xd.stream.name
placeholder existed for this purpose.
Is there any way to do this in a way that is portable.
Thank you