public class ServicePortPropertiesFunction extends Object implements PropertiesFunction
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:
Constructor and Description |
---|
ServicePortPropertiesFunction() |
Modifier and Type | Method and Description |
---|---|
String |
apply(String remainder)
Applies the function
|
String |
getName()
Name of the function which is used as name: to let the properties component know its a function.
|
public ServicePortPropertiesFunction()
public String getName()
PropertiesFunction
getName
in interface PropertiesFunction
public String apply(String remainder)
PropertiesFunction
apply
in interface PropertiesFunction
remainder
- the remainder valueApache Camel