public interface CachingProvider
getDefaultURI()
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all of the CacheManager instances and associated resources created
and maintained by the CachingProvider across all ClassLoaders.
|
void |
close(ClassLoader classLoader)
Closes all CacheManager instances and associated resources created by
the CachingProvider using the specified ClassLoader.
|
void |
close(URI uri,
ClassLoader classLoader)
Closes all CacheManager instances and associated resources created by
the CachingProvider for the specified URI and ClassLoader.
|
CacheManager |
getCacheManager()
Requests a CacheManager configured according to the
getDefaultURI()
and getDefaultProperties() be made available that using the
getDefaultClassLoader() for loading underlying classes. |
CacheManager |
getCacheManager(URI uri,
ClassLoader classLoader)
Requests a CacheManager configured according to the vendor specific URI
be made available that uses the provided ClassLoader for loading underlying
classes.
|
CacheManager |
getCacheManager(URI uri,
ClassLoader classLoader,
Properties properties)
Requests a CacheManager configured according to the vendor specific URI
be made available that uses the provided ClassLoader for loading underlying
classes.
|
ClassLoader |
getDefaultClassLoader()
Obtains the default ClassLoader that will be used by the CachingProvider.
|
Properties |
getDefaultProperties()
Obtains the default Properties for the CachingProvider.
|
URI |
getDefaultURI()
Obtains the default URI for the CachingProvider.
|
boolean |
isSupported(OptionalFeature optionalFeature)
Determines whether an optional feature is supported by the CachingProvider.
|
CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties)
uri
- a vendor specific URI for the CacheManager (null means
use getDefaultURI()
)classLoader
- the ClassLoader to use for the CacheManager (null means
use getDefaultClassLoader()
)properties
- the Properties for the CachingProvider to
create the CacheManager (null means no vendor specific
Properties are required)CacheException
- when a CacheManager for the specified
arguments could not be producedClassLoader getDefaultClassLoader()
URI getDefaultURI()
Properties getDefaultProperties()
CacheManager getCacheManager(URI uri, ClassLoader classLoader)
uri
- a vendor specific URI for the CacheManager (null means
use getDefaultURI()
)classLoader
- the ClassLoader to use for the CacheManager (null means
use getDefaultClassLoader()
)CacheException
- when a CacheManager for the specified
arguments could not be producedCacheManager getCacheManager()
getDefaultURI()
and getDefaultProperties()
be made available that using the
getDefaultClassLoader()
for loading underlying classes.
Multiple calls to this method must return the same
CacheManager instance, accept if a previously returned CacheManager
has been closed.void close()
void close(ClassLoader classLoader)
classLoader
- the ClassLoader to releasevoid close(URI uri, ClassLoader classLoader)
uri
- the URI to releaseclassLoader
- the ClassLoader to releaseboolean isSupported(OptionalFeature optionalFeature)
optionalFeature
- the feature to check forCopyright © 2013. All Rights Reserved.