[jbosscache-commits] JBoss Cache SVN: r5336 - core/trunk/src/main/java/org/jboss/cache/config.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Fri Feb 8 10:58:30 EST 2008


Author: manik.surtani at jboss.com
Date: 2008-02-08 10:58:29 -0500 (Fri, 08 Feb 2008)
New Revision: 5336

Modified:
   core/trunk/src/main/java/org/jboss/cache/config/ConfigurationComponent.java
Log:
allow cfg changes when cache status is STARTING

Modified: core/trunk/src/main/java/org/jboss/cache/config/ConfigurationComponent.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/ConfigurationComponent.java	2008-02-08 13:45:23 UTC (rev 5335)
+++ core/trunk/src/main/java/org/jboss/cache/config/ConfigurationComponent.java	2008-02-08 15:58:29 UTC (rev 5336)
@@ -105,7 +105,7 @@
    {
       try
       {
-         if (!accessible && cache != null && cache.getCacheStatus() != null && (cache.getCacheStatus() == CacheStatus.STARTED || cache.getCacheStatus() == CacheStatus.STARTING) && !getClass().getDeclaredField(fieldName).isAnnotationPresent(Dynamic.class))
+         if (!accessible && cache != null && cache.getCacheStatus() != null && cache.getCacheStatus() == CacheStatus.STARTED && !getClass().getDeclaredField(fieldName).isAnnotationPresent(Dynamic.class))
          {
             throw new ConfigurationException("Attempted to modify a non-Dynamic configuration element [" + fieldName + "] after the cache has started!");
          }




More information about the jbosscache-commits mailing list