com.hazelcast.cache.impl
Class AbstractHazelcastCachingProvider

java.lang.Object
  extended by com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
All Implemented Interfaces:
Closeable, javax.cache.spi.CachingProvider
Direct Known Subclasses:
HazelcastClientCachingProvider, HazelcastServerCachingProvider

public abstract class AbstractHazelcastCachingProvider
extends Object
implements javax.cache.spi.CachingProvider

Abstract CachingProvider implementation providing shared functionality to server and client caching providers.

This class encapsulates following details:

See Also:
CachingProvider

Field Summary
protected  ClassLoader defaultClassLoader
           
protected  URI defaultURI
           
protected  HazelcastInstance hazelcastInstance
           
protected static ILogger LOGGER
           
 
Constructor Summary
AbstractHazelcastCachingProvider()
           
 
Method Summary
 void close()
           
 void close(ClassLoader classLoader)
           
 void close(URI uri, ClassLoader classLoader)
           
protected abstract
<T extends AbstractHazelcastCacheManager>
T
createHazelcastCacheManager(URI uri, ClassLoader classLoader, Properties managerProperties)
           
 javax.cache.CacheManager getCacheManager()
           
 javax.cache.CacheManager getCacheManager(URI uri, ClassLoader classLoader)
           
 javax.cache.CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties)
           
 ClassLoader getDefaultClassLoader()
           
 Properties getDefaultProperties()
           
 URI getDefaultURI()
           
protected  ClassLoader getManagerClassLoader(ClassLoader classLoader)
           
protected  URI getManagerUri(URI uri)
           
 boolean isSupported(javax.cache.configuration.OptionalFeature optionalFeature)
           
protected  void shutdownHazelcastInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final ILogger LOGGER

hazelcastInstance

protected volatile HazelcastInstance hazelcastInstance

defaultClassLoader

protected final ClassLoader defaultClassLoader

defaultURI

protected final URI defaultURI
Constructor Detail

AbstractHazelcastCachingProvider

public AbstractHazelcastCachingProvider()
Method Detail

getCacheManager

public javax.cache.CacheManager getCacheManager(URI uri,
                                                ClassLoader classLoader,
                                                Properties properties)
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 classLoader)
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 Closeable
Specified by:
close in interface javax.cache.spi.CachingProvider

shutdownHazelcastInstance

protected void shutdownHazelcastInstance()

close

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

close

public void close(URI uri,
                  ClassLoader classLoader)
Specified by:
close in interface javax.cache.spi.CachingProvider

isSupported

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

getManagerUri

protected URI getManagerUri(URI uri)

getManagerClassLoader

protected ClassLoader getManagerClassLoader(ClassLoader classLoader)

createHazelcastCacheManager

protected abstract <T extends AbstractHazelcastCacheManager> T createHazelcastCacheManager(URI uri,
                                                                                           ClassLoader classLoader,
                                                                                           Properties managerProperties)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.