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() |
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.
|
void |
reloadProperties(String location) |
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 void reloadProperties(String location)
reloadProperties
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.BaseService
Exception
protected static Properties prepareLoadedProperties(Properties properties)
properties
- the propertiesApache Camel