@UriEndpoint(firstVersion="2.3.0",
scheme="properties",
title="Properties",
syntax="properties:key",
label="core,endpoint")
public class PropertiesEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.DelegateEndpoint
| Constructor and Description |
|---|
PropertiesEndpoint(String endpointUri,
org.apache.camel.Endpoint delegate,
org.apache.camel.Component component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Endpoint |
getEndpoint() |
String |
getKey() |
String |
getLocations() |
boolean |
isIgnoreMissingLocation() |
boolean |
isSingleton() |
void |
setIgnoreMissingLocation(boolean ignoreMissingLocation)
Whether to silently ignore if a location cannot be located, such as a properties file not found.
|
void |
setKey(String key)
Property key to use as placeholder
|
void |
setLocations(String locations)
A list of locations to load properties.
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic PropertiesEndpoint(String endpointUri, org.apache.camel.Endpoint delegate, org.apache.camel.Component component)
public String getKey()
public void setKey(String key)
public String getLocations()
public void setLocations(String locations)
public boolean isIgnoreMissingLocation()
public void setIgnoreMissingLocation(boolean ignoreMissingLocation)
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic org.apache.camel.Endpoint getEndpoint()
getEndpoint in interface org.apache.camel.DelegateEndpointprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultEndpointExceptionApache Camel