org.ehcache.impl.config.persistence
Class CacheManagerPersistenceConfiguration

java.lang.Object
  extended by org.ehcache.impl.config.persistence.CacheManagerPersistenceConfiguration
All Implemented Interfaces:
CacheManagerConfiguration<PersistentCacheManager>, PersistenceConfiguration, ServiceCreationConfiguration<LocalPersistenceService>

public class CacheManagerPersistenceConfiguration
extends java.lang.Object
implements PersistenceConfiguration, CacheManagerConfiguration<PersistentCacheManager>


Constructor Summary
CacheManagerPersistenceConfiguration(java.io.File rootDirectory)
           
 
Method Summary
 CacheManagerBuilder<PersistentCacheManager> builder(CacheManagerBuilder<? extends CacheManager> other)
          Enables to refine the type that the CacheManagerBuilder will build.
 java.io.File getRootDirectory()
           
 java.lang.Class<LocalPersistenceService> getServiceType()
          Indicates which service consumes this configuration at creation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManagerPersistenceConfiguration

public CacheManagerPersistenceConfiguration(java.io.File rootDirectory)
Method Detail

getRootDirectory

public java.io.File getRootDirectory()
Specified by:
getRootDirectory in interface PersistenceConfiguration

getServiceType

public java.lang.Class<LocalPersistenceService> getServiceType()
Description copied from interface: ServiceCreationConfiguration
Indicates which service consumes this configuration at creation.

Specified by:
getServiceType in interface ServiceCreationConfiguration<LocalPersistenceService>
Returns:
the service type

builder

public CacheManagerBuilder<PersistentCacheManager> builder(CacheManagerBuilder<? extends CacheManager> other)
Description copied from interface: CacheManagerConfiguration
Enables to refine the type that the CacheManagerBuilder will build.

Specified by:
builder in interface CacheManagerConfiguration<PersistentCacheManager>
Parameters:
other - the original builder to start from
Returns:
a new builder with adapted configuration and specific CacheManager subtype