Update of /var/cvs/src/org/mmbase/bridge
In directory james.mmbase.org:/tmp/cvs-serv13578

Modified Files:
        RemoteContext.java 
Log Message:
javadoc


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge


Index: RemoteContext.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/RemoteContext.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- RemoteContext.java  17 Jul 2008 17:16:12 -0000      1.12
+++ RemoteContext.java  28 Jul 2008 16:27:56 -0000      1.13
@@ -17,12 +17,17 @@
 // import org.mmbase.bridge.remote.RemoteCloudContext;
 
 /**
- * @javadoc
+ * This, despiite its name, is not actually a CloudContext, it only provides 
the static method to obtain one.
+ *
  * @author Kees Jongenburger <[EMAIL PROTECTED]>
- * @version $Id: RemoteContext.java,v 1.12 2008/07/17 17:16:12 michiel Exp $
+ * @version $Id: RemoteContext.java,v 1.13 2008/07/28 16:27:56 michiel Exp $
  * @since MMBase-1.5
  */
-public abstract class RemoteContext {
+public final class RemoteContext {
+
+    private RemoteContext() {
+        throw new IllegalArgumentException("This class has no instances");
+    }
     /**
      * Connect to a remote cloudcontext. The name of the context
      * depends on configurations found in mmbaseroot.xml (host) and
@@ -37,7 +42,7 @@
 
             Object remoteCloudContext= Naming.lookup(uri);
             Class<?> clazz = 
Class.forName("org.mmbase.bridge.remote.proxy.UriRemoteCloudContext_Proxy");
-            Constructor<?> constr =  
clazz.getConstructor(Class.forName("org.mmbase.bridge.remote.RemoteCloudContext"),
 String.class);
+            Constructor<?> constr =  clazz.getConstructor(clazz, String.class);
             return (CloudContext) constr.newInstance(remoteCloudContext, uri);
             //new RemoteCloudContext_Impl(remoteCloudContext);
         } catch (MalformedURLException mue) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to