|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CachingProvider
Interface that should be implemented by a CacheManager factory provider.
It is invoked by the Caching class to create
a CacheManager
Caching| Method Summary | |
|---|---|
CacheManager |
createCacheManager(ClassLoader classLoader,
String name)
Called by the Caching class when a
new CacheManager needs to be created. |
ClassLoader |
getDefaultClassLoader()
Called by the Caching class when a
new CacheManager needs to be created and the ClassLoader is not specified. |
boolean |
isSupported(OptionalFeature optionalFeature)
Indicates whether a optional feature is supported by this implementation |
| Method Detail |
|---|
CacheManager createCacheManager(ClassLoader classLoader,
String name)
Caching class when a
new CacheManager needs to be created.
The name may be used to associate a configuration with this CacheManager instance.
classLoader - the ClassLoader that should be used in converting values into Java Objects.name - the name of this cache manager
NullPointerException - if classLoader or name is nullCaching.getCacheManager(ClassLoader, String)ClassLoader getDefaultClassLoader()
Caching class when a
new CacheManager needs to be created and the ClassLoader is not specified.
Possible strategies include the following:
Thread.currentThread().getContextClassLoader();
getClass().getClassLoader();
Returns the default classloader to use if
Caching.getCacheManager()boolean isSupported(OptionalFeature optionalFeature)
optionalFeature - the feature to check for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||