Class ServicePortPropertiesFunction
java.lang.Object
org.apache.camel.component.properties.ServicePortPropertiesFunction
- All Implemented Interfaces:
org.apache.camel.spi.PropertiesFunction
public class ServicePortPropertiesFunction
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
- See Also:
-
Constructor Details
-
ServicePortPropertiesFunction
public ServicePortPropertiesFunction()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.apache.camel.spi.PropertiesFunction
-
apply
- Specified by:
apply
in interfaceorg.apache.camel.spi.PropertiesFunction
-