Search in sources :

Example 1 with FileCacheManagerFactory

use of org.apache.camel.component.cache.FileCacheManagerFactory in project camel by apache.

the class BaseCacheTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    // use a file cache manager factory to load out test configuration
    cache = new CacheComponent();
    cache.setCacheManagerFactory(new FileCacheManagerFactory("src/test/resources/test-ehcache.xml"));
    jndi.bind("cache", cache);
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) FileCacheManagerFactory(org.apache.camel.component.cache.FileCacheManagerFactory) CacheComponent(org.apache.camel.component.cache.CacheComponent)

Aggregations

CacheComponent (org.apache.camel.component.cache.CacheComponent)1 FileCacheManagerFactory (org.apache.camel.component.cache.FileCacheManagerFactory)1 JndiRegistry (org.apache.camel.impl.JndiRegistry)1