Search in sources :

Example 1 with Configuration

use of org.qi4j.api.configuration.Configuration in project qi4j-sdk by Qi4j.

the class EhCachePoolMixin method activateService.

@Override
public void activateService() throws Exception {
    net.sf.ehcache.config.Configuration configuration = new net.sf.ehcache.config.Configuration();
    configureEhCache(configuration);
    CacheConfiguration cc = createCacheConfiguration("qi4j.ehcache.config.default");
    configuration.setDefaultCacheConfiguration(cc);
    cacheManager = CacheManager.newInstance(configuration);
}
Also used : PersistenceConfiguration(net.sf.ehcache.config.PersistenceConfiguration) CacheConfiguration(net.sf.ehcache.config.CacheConfiguration) Configuration(org.qi4j.api.configuration.Configuration) CacheConfiguration(net.sf.ehcache.config.CacheConfiguration)

Aggregations

CacheConfiguration (net.sf.ehcache.config.CacheConfiguration)1 PersistenceConfiguration (net.sf.ehcache.config.PersistenceConfiguration)1 Configuration (org.qi4j.api.configuration.Configuration)1