public class EhcacheCachingProvider
extends java.lang.Object
implements javax.cache.spi.CachingProvider
CachingProvider
implementation for Ehcache.Constructor and Description |
---|
EhcacheCachingProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(java.lang.ClassLoader classLoader) |
void |
close(java.net.URI uri,
java.lang.ClassLoader classLoader) |
javax.cache.CacheManager |
getCacheManager() |
javax.cache.CacheManager |
getCacheManager(java.net.URI uri,
java.lang.ClassLoader classLoader) |
javax.cache.CacheManager |
getCacheManager(java.net.URI uri,
java.lang.ClassLoader classLoader,
java.util.Properties properties) |
javax.cache.CacheManager |
getCacheManager(java.net.URI uri,
Configuration config)
Enables to create a JSR-107
CacheManager based on the provided Ehcache Configuration . |
javax.cache.CacheManager |
getCacheManager(java.net.URI uri,
Configuration config,
java.util.Properties properties)
Enables to create a JSR-107
CacheManager based on the provided Ehcache Configuration with the
provided Properties . |
java.lang.ClassLoader |
getDefaultClassLoader() |
java.util.Properties |
getDefaultProperties() |
java.net.URI |
getDefaultURI() |
boolean |
isSupported(javax.cache.configuration.OptionalFeature optionalFeature) |
public javax.cache.CacheManager getCacheManager(java.net.URI uri, java.lang.ClassLoader classLoader, java.util.Properties properties)
getCacheManager
in interface javax.cache.spi.CachingProvider
public javax.cache.CacheManager getCacheManager(java.net.URI uri, Configuration config)
CacheManager
based on the provided Ehcache Configuration
.uri
- the URI identifying this cache managerconfig
- the Ehcache configuration to usepublic javax.cache.CacheManager getCacheManager(java.net.URI uri, Configuration config, java.util.Properties properties)
CacheManager
based on the provided Ehcache Configuration
with the
provided Properties
.uri
- the URI identifying this cache managerconfig
- the Ehcache configuration to useproperties
- extra propertiespublic java.lang.ClassLoader getDefaultClassLoader()
getDefaultClassLoader
in interface javax.cache.spi.CachingProvider
public java.net.URI getDefaultURI()
getDefaultURI
in interface javax.cache.spi.CachingProvider
public java.util.Properties getDefaultProperties()
getDefaultProperties
in interface javax.cache.spi.CachingProvider
public javax.cache.CacheManager getCacheManager(java.net.URI uri, java.lang.ClassLoader classLoader)
getCacheManager
in interface javax.cache.spi.CachingProvider
public javax.cache.CacheManager getCacheManager()
getCacheManager
in interface javax.cache.spi.CachingProvider
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface javax.cache.spi.CachingProvider
public void close(java.lang.ClassLoader classLoader)
close
in interface javax.cache.spi.CachingProvider
public void close(java.net.URI uri, java.lang.ClassLoader classLoader)
close
in interface javax.cache.spi.CachingProvider
public boolean isSupported(javax.cache.configuration.OptionalFeature optionalFeature)
isSupported
in interface javax.cache.spi.CachingProvider