All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.service.cache.ehcache.EhCacheServiceBuilder Maven / Gradle / Ivy

package com.jpattern.service.cache.ehcache;

import com.jpattern.service.cache.ACacheServiceBuilder;
import com.jpattern.service.cache.ICacheService;

/**
 * 
 * @author Francesco Cina'
 *
 * 2 May 2011
 */
public class EhCacheServiceBuilder extends ACacheServiceBuilder {

	private static final long serialVersionUID = 1L;
	private final IEhCacheServiceConfig ehCacheServiceConfig;
	
	public EhCacheServiceBuilder(IEhCacheServiceConfig ehCacheServiceConfig) {
		this.ehCacheServiceConfig = ehCacheServiceConfig;
	}

	@Override
	public ICacheService build() {
		return new EhCacheService(getName(), ehCacheServiceConfig);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy