public class BlueprintPropertiesParser extends org.apache.camel.component.properties.DefaultPropertiesParser
PropertiesParser
which supports looking up
property placeholders from the Blueprint Property Placeholder Service.
This implementation will sit on top of any existing configured
PropertiesParser
and will delegate to those in case Blueprint could not
resolve the property.Constructor and Description |
---|
BlueprintPropertiesParser(org.apache.camel.component.properties.PropertiesComponent propertiesComponent,
org.osgi.service.blueprint.container.BlueprintContainer container,
org.apache.camel.component.properties.PropertiesParser delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyPlaceholder(String id)
Adds the given Blueprint property placeholder service with the given id
|
String[] |
lookupPropertyPlaceholderIds()
Lookup the ids of the Blueprint property placeholder services in the
Blueprint container.
|
String |
parseProperty(String key,
String value,
Properties properties) |
public BlueprintPropertiesParser(org.apache.camel.component.properties.PropertiesComponent propertiesComponent, org.osgi.service.blueprint.container.BlueprintContainer container, org.apache.camel.component.properties.PropertiesParser delegate)
public String[] lookupPropertyPlaceholderIds()
public void addPropertyPlaceholder(String id)
id
- id of the Blueprint property placeholder service to add.public String parseProperty(String key, String value, Properties properties)
parseProperty
in interface org.apache.camel.component.properties.PropertiesParser
parseProperty
in class org.apache.camel.component.properties.DefaultPropertiesParser
Apache Camel