Class ServicePropertiesFunction
java.lang.Object
org.apache.camel.component.properties.ServicePropertiesFunction
- All Implemented Interfaces:
org.apache.camel.spi.PropertiesFunction
public class ServicePropertiesFunction
extends Object
implements org.apache.camel.spi.PropertiesFunction
A
PropertiesFunction
that lookup the property value from OS environment variables using the service idiom.
A service is defined using two environment variables where name is name of the service:
- NAME_SERVICE_HOST
- NAME_SERVICE_PORT
-
Constructor Details
-
ServicePropertiesFunction
public ServicePropertiesFunction()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.apache.camel.spi.PropertiesFunction
-
apply
- Specified by:
apply
in interfaceorg.apache.camel.spi.PropertiesFunction
-