[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-cvs
Subject: [opennms-cvs] CVS: opennms/src/services/org/opennms/netmgt/config CategoryFactory.java,1.8,1.9
From: jonathan sartin <jsartin () users ! sourceforge ! net>
Date: 2005-05-27 13:27:41
Message-ID: E1DbesH-0005Sr-Jb () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20984/src/services/org/opennms/netmgt/config
Modified Files:
CategoryFactory.java
Log Message:
Extract interface from CategoryFactory
Required for MockCategoryFactory
Index: CategoryFactory.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/config/CategoryFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- CategoryFactory.java 21 Nov 2004 03:31:14 -0000 1.8
+++ CategoryFactory.java 27 May 2005 13:27:39 -0000 1.9
@@ -62,11 +62,11 @@
* @author <a href="mailto:sowmya@opennms.org">Sowmya Nataraj </a>
* @author <a href="http://www.opennms.org/">OpenNMS </a>
*/
-public final class CategoryFactory {
+public final class CategoryFactory implements CatFactory{
/**
* The singleton instance of this factory
*/
- private static CategoryFactory m_singleton = null;
+ private static CatFactory m_singleton = null;
/**
* The config class loaded from the config file
@@ -146,13 +146,18 @@
* @throws java.lang.IllegalStateException
* Thrown if the factory has not yet been initialized.
*/
- public static synchronized CategoryFactory getInstance() {
+ public static synchronized CatFactory getInstance() {
if (!m_loaded)
throw new IllegalStateException("The factory has not been initialized");
return m_singleton;
}
+ public static void setInstance(CatFactory singleton) {
+ m_singleton=singleton;
+ m_loaded=true;
+ }
+
/**
* Return the categories configuration.
*
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://wiki.opennms.org/tiki-index.php?page=MailingListFaq
opennms-cvs mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic