Class 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 Detail

      • JCacheProvider

        public JCacheProvider()
    • Method Detail

      • name2Uri

        public URI name2Uri​(String name)
      • uri2Name

        public String uri2Name​(URI uri)
      • getCacheManager

        public javax.cache.CacheManager getCacheManager​(URI uri,
                                                        ClassLoader cl,
                                                        Properties p)
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • getDefaultClassLoader

        public ClassLoader getDefaultClassLoader()
        Specified by:
        getDefaultClassLoader in interface javax.cache.spi.CachingProvider
      • getDefaultURI

        public URI getDefaultURI()
        Specified by:
        getDefaultURI in interface javax.cache.spi.CachingProvider
      • getDefaultProperties

        public Properties getDefaultProperties()
        Specified by:
        getDefaultProperties in interface javax.cache.spi.CachingProvider
      • getCacheManager

        public javax.cache.CacheManager getCacheManager​(URI uri,
                                                        ClassLoader cl)
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • getCacheManager

        public javax.cache.CacheManager getCacheManager()
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface javax.cache.spi.CachingProvider
        Specified by:
        close in interface Closeable
      • close

        public void close​(ClassLoader cl)
        Specified by:
        close in interface javax.cache.spi.CachingProvider
      • close

        public void close​(URI uri,
                          ClassLoader cl)
        Specified by:
        close in interface javax.cache.spi.CachingProvider
      • isSupported

        public boolean isSupported​(javax.cache.configuration.OptionalFeature v)
        Specified by:
        isSupported in interface javax.cache.spi.CachingProvider