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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected AbstractLocationPropertiesSource(PropertiesComponent propertiesComponent, PropertiesLocation location)
public PropertiesLocation getLocation()
LocationPropertiesSourcegetLocation in interface LocationPropertiesSourcepublic Properties loadProperties()
loadProperties in interface org.apache.camel.spi.LoadablePropertiesSourcepublic Properties loadProperties(Predicate<String> filter)
loadProperties in interface org.apache.camel.spi.LoadablePropertiesSourcepublic void reloadProperties(String location)
reloadProperties in interface org.apache.camel.spi.LoadablePropertiesSourcepublic String getProperty(String name)
getProperty in interface org.apache.camel.spi.PropertiesSourceprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected static Properties prepareLoadedProperties(Properties properties)
properties - the propertiesApache Camel