public class CacheComponent
extends org.apache.camel.impl.UriEndpointComponent
Constructor and Description |
---|
CacheComponent() |
CacheComponent(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map parameters) |
protected void |
doStart() |
protected void |
doStop() |
CacheManagerFactory |
getCacheManagerFactory() |
CacheConfiguration |
getConfiguration() |
String |
getConfigurationFile() |
void |
setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
To use the given CacheManagerFactory for creating the CacheManager.
|
void |
setConfiguration(CacheConfiguration configuration)
Sets the Cache configuration
|
void |
setConfigurationFile(String configurationFile)
Sets the location of the ehcache.xml file to load from classpath or file system.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
public CacheComponent()
public CacheComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
public CacheManagerFactory getCacheManagerFactory()
public void setCacheManagerFactory(CacheManagerFactory cacheManagerFactory)
public CacheConfiguration getConfiguration()
public void setConfiguration(CacheConfiguration configuration)
configuration
- the configuration to use by default for endpointspublic String getConfigurationFile()
public void setConfigurationFile(String configurationFile)
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultComponent
Exception
Apache Camel