[Opensrf-commits] r1112 - trunk/src/java/org/opensrf/util

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 23 11:50:26 EDT 2007


Author: erickson
Date: 2007-10-23 11:36:45 -0400 (Tue, 23 Oct 2007)
New Revision: 1112

Modified:
   trunk/src/java/org/opensrf/util/OSRFObject.java
Log:
added new constructor to build from class hints

Modified: trunk/src/java/org/opensrf/util/OSRFObject.java
===================================================================
--- trunk/src/java/org/opensrf/util/OSRFObject.java	2007-10-19 23:43:59 UTC (rev 1111)
+++ trunk/src/java/org/opensrf/util/OSRFObject.java	2007-10-23 15:36:45 UTC (rev 1112)
@@ -16,6 +16,7 @@
     public OSRFObject() {
     }
 
+
     /**
      * Creates a new object with the provided registry
      */
@@ -24,7 +25,16 @@
         registry = reg;
     }
 
+
     /**
+     * Creates a new OpenSRF object based on the net class string
+     * */
+    public OSRFObject(String netClass) {
+        this(OSRFRegistry.getRegistry(netClass));
+    }
+
+
+    /**
      * @return This object's registry
      */
     public OSRFRegistry getRegistry() {



More information about the opensrf-commits mailing list