Author: galder.zamarreno(a)jboss.com
Date: 2008-05-16 07:33:45 -0400 (Fri, 16 May 2008)
New Revision: 5864
Modified:
core/trunk/src/main/java/org/jboss/cache/loader/SingletonStoreCacheLoader.java
Log:
[JBCACHE-1346] Cache listener now added in the create step rather than in the
configuration phase.
Modified: core/trunk/src/main/java/org/jboss/cache/loader/SingletonStoreCacheLoader.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/loader/SingletonStoreCacheLoader.java 2008-05-16
07:36:32 UTC (rev 5863)
+++
core/trunk/src/main/java/org/jboss/cache/loader/SingletonStoreCacheLoader.java 2008-05-16
11:33:45 UTC (rev 5864)
@@ -140,9 +140,15 @@
public void setCache(CacheSPI c)
{
super.setCache(c);
-
- c.addCacheListener(new SingletonStoreListener());
}
+
+ @Override
+ public void create() throws Exception
+ {
+ super.create();
+
+ cache.addCacheListener(new SingletonStoreListener());
+ }
/**
* Protected constructor which should only be used from unit tests. Production code
should set
Show replies by date