From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/util
Date:	Friday February 23, 19101 @ 15:41
Author:	burton
CVSWEB Options: -------------------
Main CVSWeb:     http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi
View this module:  http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/util
-----------------------------------
Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/util
In directory giga:/tmp/cvs-serv1603/src/java/org/openprivacy/sierra/util
Modified Files:
        SierraResources.java 
Log Message:
reorganized the rce package just like the other talon based packages
*****************************************************************
File:  sierra/src/java/org/openprivacy/sierra/util/SierraResources.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file:         http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/util/SierraResources.java?annotate=1.5
CVSWeb: View this file:             http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/util/SierraResources.java?rev=1.5&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version:   http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/util/SierraResources.java.diff?r1=1.5&r2=1.4
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/util/SierraResources.java
diff -u sierra/src/java/org/openprivacy/sierra/util/SierraResources.java:1.4 sierra/src/java/org/openprivacy/sierra/util/SierraResources.java:1.5
--- sierra/src/java/org/openprivacy/sierra/util/SierraResources.java:1.4	Fri Feb 23 13:46:23 2001
+++ sierra/src/java/org/openprivacy/sierra/util/SierraResources.java	Fri Feb 23 15:41:45 2001
@@ -22,6 +22,7 @@
 import java.security.Principal;
 import java.util.*;
 import org.openprivacy.sierra.reputation.talon.interfaces.*;
+import org.openprivacy.sierra.rce.talon.interfaces.*;
 import talon.*;
 import talon.interfaces.*;
 import talon.util.net.*;
@@ -32,7 +33,7 @@
  * from dealing with Talon components.
  *
  * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: SierraResources.java,v 1.4 2001/02/23 21:46:23 burton Exp $
+ * @version $Id: SierraResources.java,v 1.5 2001/02/23 23:41:45 burton Exp $
  */
 public class SierraResources {
 
@@ -83,28 +84,58 @@
         new ComponentHandle().setName( "sierra_rce" );
     
 
+    public static final ComponentHandle RCE_CONTEXT_HANDLE = 
+        new ComponentHandle().setInterface( "org.openprivacy.sierra.rce.talon.interfaces.RCEContext" )
+                             .setImplementation( "org.openprivacy.sierra.rce.talon.implementations.SimpleRCEContext" )
+                             .setLifetime( ComponentHandle.LIFETIME_DEMAND );
+    
     /**
      * Get the registered Talon Component "Reputation" with a "demand" lifetime.
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: SierraResources.java,v 1.4 2001/02/23 21:46:23 burton Exp $
+     * @version $Id: SierraResources.java,v 1.5 2001/02/23 23:41:45 burton Exp $
      */
-    public static Reputation getReputation() throws TalonException {
+    public static Reputation getReputation() throws SierraException {
 
-        return (Reputation)ComponentFactory.getInstance( SierraResources.REPUTATION_HANDLE ); 
-        
+        try { 
+            return (Reputation)ComponentFactory.getInstance( SierraResources.REPUTATION_HANDLE ); 
+        } catch ( TalonException e ) {
+            throw new SierraException( e );
+        }
     }
 
     /**
      * Get the registered Talon Component "Reference" with a "demand" lifetime.
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: SierraResources.java,v 1.4 2001/02/23 21:46:23 burton Exp $
+     * @version $Id: SierraResources.java,v 1.5 2001/02/23 23:41:45 burton Exp $
      */
-    public static Reference getReference() throws TalonException {
+    public static Reference getReference() throws SierraException {
 
-        return (Reference)ComponentFactory.getInstance( SierraResources.REFERENCE_HANDLE ); 
+        try {
+            return (Reference)ComponentFactory.getInstance( SierraResources.REFERENCE_HANDLE ); 
+        } catch ( TalonException e ) {
+            throw new SierraException( e );
+        }
 
     }
+
+
+    /**
+     * Get the registered Talon Component "RCEContext" with a "demand" lifetime.
+     *
+     * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+     * @version $Id: SierraResources.java,v 1.5 2001/02/23 23:41:45 burton Exp $
+     */
+    public static RCEContext getRCEContext() throws SierraException {
+
+        try {
+            return (RCEContext)ComponentFactory.getInstance(SierraResources.RCE_CONTEXT_HANDLE );
+        } catch ( TalonException e ) {
+            throw new SierraException( e );
+        }
+        
+    }
+
     
 }
This archive was generated by hypermail 2b30 : Fri Feb 23 2001 - 15:42:17 PST