public abstract class AbstractLocationPropertiesSource extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.LoadablePropertiesSource, LocationPropertiesSource
LoadablePropertiesSource
which can load properties from a source such as classpath or file system.Modifier | Constructor and Description |
---|---|
protected |
AbstractLocationPropertiesSource(PropertiesComponent propertiesComponent,
PropertiesLocation location) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
PropertiesLocation |
getLocation()
Gets the location of the properties
|
String |
getProperty(String name) |
Properties |
loadProperties() |
Properties |
loadProperties(Predicate<String> filter) |
protected static Properties |
prepareLoadedProperties(Properties properties)
Strategy to prepare loaded properties before being used by Camel.
|
build, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected AbstractLocationPropertiesSource(PropertiesComponent propertiesComponent, PropertiesLocation location)
public PropertiesLocation getLocation()
LocationPropertiesSource
getLocation
in interface LocationPropertiesSource
public Properties loadProperties()
loadProperties
in interface org.apache.camel.spi.LoadablePropertiesSource
public Properties loadProperties(Predicate<String> filter)
loadProperties
in interface org.apache.camel.spi.LoadablePropertiesSource
public String getProperty(String name)
getProperty
in interface org.apache.camel.spi.PropertiesSource
protected void doInit() throws Exception
doInit
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
Exception
protected static Properties prepareLoadedProperties(Properties properties)
properties
- the propertiesApache Camel