river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sijs...@apache.org
Subject svn commit: r1389823 - in /river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation: Federation.java IntrospectionConfiguration.java
Date Tue, 25 Sep 2012 12:07:07 GMT
Author: sijskes
Date: Tue Sep 25 12:07:06 2012
New Revision: 1389823

URL: http://svn.apache.org/viewvc?rev=1389823&view=rev
Log:
added introspection based configuration.

Added:
    river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/IntrospectionConfiguration.java
Modified:
    river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/Federation.java

Modified: river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/Federation.java
URL: http://svn.apache.org/viewvc/river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/Federation.java?rev=1389823&r1=1389822&r2=1389823&view=diff
==============================================================================
--- river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/Federation.java (original)
+++ river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/Federation.java Tue
Sep 25 12:07:06 2012
@@ -60,7 +60,7 @@ public class Federation
      */
     private static Configuration getConfiguration(Remote svc)
     {
-        return EmptyConfiguration.INSTANCE; // TODO 
+        return new IntrospectionConfiguration(svc);
     }
 
 

Added: river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/IntrospectionConfiguration.java
URL: http://svn.apache.org/viewvc/river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/IntrospectionConfiguration.java?rev=1389823&view=auto
==============================================================================
--- river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/IntrospectionConfiguration.java
(added)
+++ river/jtsk/trunk/netbeans/federation/src/org/apache/river/federation/IntrospectionConfiguration.java
Tue Sep 25 12:07:06 2012
@@ -0,0 +1,48 @@
+/*
+ *  IntrospectionConfiguration.java
+ * 
+ */
+
+package org.apache.river.federation;
+
+import java.rmi.Remote;
+import net.jini.config.Configuration;
+import net.jini.config.ConfigurationException;
+import net.jini.config.EmptyConfiguration;
+
+/**
+ * TODO: implement
+ */
+public class IntrospectionConfiguration
+    implements Configuration
+{
+    private EmptyConfiguration empty = EmptyConfiguration.INSTANCE ;
+
+    public IntrospectionConfiguration(Remote svc)
+    {
+        // TODO
+    }
+
+    @Override
+    public Object getEntry(String component, String name, Class type, Object defaultValue,
Object data)
+            throws ConfigurationException
+    {
+        return empty.getEntry(component, name, type, defaultValue, data);
+    }
+
+    @Override
+    public Object getEntry(String component, String name, Class type, Object defaultValue)
+            throws ConfigurationException
+    {
+        return empty.getEntry(component, name, type, defaultValue);
+    }
+
+    @Override
+    public Object getEntry(String component, String name, Class type)
+            throws ConfigurationException
+    {
+        return empty.getEntry(component, name, type);
+    }
+    
+    
+}



Mime
View raw message