Package org.cache2k.jcache.provider
Class JCacheProvider
- java.lang.Object
-
- org.cache2k.jcache.provider.JCacheProvider
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.spi.CachingProvider
public class JCacheProvider extends Object implements javax.cache.spi.CachingProvider
JSR107 caching provider on top of cache2k.Attention: Don't move or rename without a transition plan since users might to specify the provider explicitly.
- Author:
- Jens Wilke
- See Also:
- JCache - cache2k User Guide
-
-
Constructor Summary
Constructors Constructor Description JCacheProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
close(ClassLoader cl)
void
close(URI uri, ClassLoader cl)
javax.cache.CacheManager
getCacheManager()
javax.cache.CacheManager
getCacheManager(URI uri, ClassLoader cl)
javax.cache.CacheManager
getCacheManager(URI uri, ClassLoader cl, Properties p)
ClassLoader
getDefaultClassLoader()
Properties
getDefaultProperties()
URI
getDefaultURI()
boolean
isSupported(javax.cache.configuration.OptionalFeature v)
URI
name2Uri(String name)
String
uri2Name(URI uri)
-
-
-
Method Detail
-
getCacheManager
public javax.cache.CacheManager getCacheManager(URI uri, ClassLoader cl, Properties p)
- Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
getDefaultClassLoader
public ClassLoader getDefaultClassLoader()
- Specified by:
getDefaultClassLoader
in interfacejavax.cache.spi.CachingProvider
-
getDefaultURI
public URI getDefaultURI()
- Specified by:
getDefaultURI
in interfacejavax.cache.spi.CachingProvider
-
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interfacejavax.cache.spi.CachingProvider
-
getCacheManager
public javax.cache.CacheManager getCacheManager(URI uri, ClassLoader cl)
- Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
getCacheManager
public javax.cache.CacheManager getCacheManager()
- Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
- Specified by:
close
in interfaceCloseable
-
close
public void close(ClassLoader cl)
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
-
close
public void close(URI uri, ClassLoader cl)
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
-
isSupported
public boolean isSupported(javax.cache.configuration.OptionalFeature v)
- Specified by:
isSupported
in interfacejavax.cache.spi.CachingProvider
-
-