You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by hl...@apache.org on 2003/08/01 20:26:02 UTC
cvs commit: jakarta-commons-sandbox/hivemind/src/java/org/apache/commons/hivemind HiveMind.java
hlship 2003/08/01 11:26:02
Modified: hivemind/src/java/org/apache/commons/hivemind HiveMind.java
Log:
Add a static isInitialized() method to HiveMind, to check of the default registry has been set.
Revision Changes Path
1.11 +9 -1 jakarta-commons-sandbox/hivemind/src/java/org/apache/commons/hivemind/HiveMind.java
Index: HiveMind.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/src/java/org/apache/commons/hivemind/HiveMind.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- HiveMind.java 30 Jul 2003 22:34:53 -0000 1.10
+++ HiveMind.java 1 Aug 2003 18:26:02 -0000 1.11
@@ -136,6 +136,14 @@
return _registry;
}
+
+ /**
+ * Returns true if the shared registry is not null.
+ */
+ public static boolean isInitialized()
+ {
+ return _registry != null;
+ }
public static String getMessage(String key)
{