[jboss-cvs] JBossCache/src/org/jboss/cache/config ...
Elias Ross
genman at noderunner.net
Tue Jan 16 20:31:07 EST 2007
User: genman
Date: 07/01/16 20:31:07
Modified: src/org/jboss/cache/config ConfigurationComponent.java
Log:
Restrict visibility in CacheImpl of methods and members
Revision Changes Path
1.5 +4 -4 JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConfigurationComponent.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ConfigurationComponent.java 30 Dec 2006 19:48:48 -0000 1.4
+++ ConfigurationComponent.java 17 Jan 2007 01:31:07 -0000 1.5
@@ -21,15 +21,15 @@
* that can be changed after the cache is started.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @see #testImmutability(String)
*/
public class ConfigurationComponent implements Serializable, Cloneable
{
private static final long serialVersionUID = 4879873994727821938L;
- protected Log log = LogFactory.getLog(getClass());
- private CacheImpl cache; // back-reference to test whether the cache is running.
+ protected transient Log log = LogFactory.getLog(getClass());
+ private transient CacheImpl cache; // back-reference to test whether the cache is running.
private Set<ConfigurationComponent> children =
Collections.synchronizedSet(new HashSet<ConfigurationComponent>());
@@ -99,7 +99,7 @@
{
try
{
- if (cache != null && cache.started && !getClass().getDeclaredField(fieldName).isAnnotationPresent(Dynamic.class))
+ if (cache != null && cache.isStarted() && !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 jboss-cvs-commits
mailing list