Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 53206 invoked by uid 500); 1 Aug 2003 18:25:54 -0000 Received: (qmail 53203 invoked from network); 1 Aug 2003 18:25:54 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 1 Aug 2003 18:25:54 -0000 Received: (qmail 89850 invoked by uid 1616); 1 Aug 2003 18:26:02 -0000 Date: 1 Aug 2003 18:26:02 -0000 Message-ID: <20030801182602.89849.qmail@minotaur.apache.org> From: hlship@apache.org To: jakarta-commons-sandbox-cvs@apache.org Subject: cvs commit: jakarta-commons-sandbox/hivemind/src/java/org/apache/commons/hivemind HiveMind.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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) {