*/
private CacheListeners getCacheListeners( String cacheName )
throws IOException,
NotBoundException
{
CacheListeners cacheListeners = ( CacheListeners ) cacheListenersMap.get( cacheName );
if ( cacheListeners == null )
{
synchronized ( cacheListenersMap )
{
cacheListeners = ( CacheListeners ) cacheListenersMap.get( cacheName );
if ( cacheListeners == null )
{
// NEED TO CONVERT TO USE THE FACTORY ND GET A FACADE? No it is the hub
cacheListeners = new CacheListeners( cacheManager.getCache( cacheName ) );
cacheListenersMap.put( cacheName, cacheListeners );
}
}
}
return cacheListeners;