org.jopendocument.util.cache
Interface CacheWatcherFactory<K,D>


public interface CacheWatcherFactory<K,D>


Method Summary
 CacheWatcher<K,D> createWatcher(ICache<K,?,D> cache, D data)
          Creates the appropriate watcher for listening to data.
 

Method Detail

createWatcher

CacheWatcher<K,D> createWatcher(ICache<K,?,D> cache,
                                D data)
                                throws Exception
Creates the appropriate watcher for listening to data.

Parameters:
cache - the cache.
data - the data to watch.
Returns:
the corresponding watcher.
Throws:
Exception - if the watcher could not be created.


Copyright © 2010 jOpenDocument All Rights Reserved.