|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheFactory
Factory that can be used to access caches in form of the
CachedDataSourceFactory
interface. The returned
CachedDataSourceFactory
uses the supplied callback to instantiate
DataSource
objects in case of a cache miss. The factory uses the
class object of the callback to identify cache instances.
Method Summary | ||
---|---|---|
|
getCachedDataSourceFactory(CachedDataSourceFactory.Callback<T> aCallback,
java.lang.Boolean bCached)
Returns either a new or existing instance of the cache. |
|
|
getCachedDataSourceFactory(java.lang.Class<? extends CachedDataSourceFactory.Callback<T>> aClass,
java.lang.Boolean bCached)
Returns an existing instance of the cache. |
Method Detail |
---|
<T> CachedDataSourceFactory<T> getCachedDataSourceFactory(CachedDataSourceFactory.Callback<T> aCallback, java.lang.Boolean bCached)
aCallback
- the callback functionbCached
- indicates if the method should return a
CachedDataSourceFactory
that uses an internal cache
null
<T> CachedDataSourceFactory<T> getCachedDataSourceFactory(java.lang.Class<? extends CachedDataSourceFactory.Callback<T>> aClass, java.lang.Boolean bCached)
aClass
- class object representing the cachebCached
- indicates if the method should return a
CachedDataSourceFactory
that uses an internal cache
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |