You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/14 18:15:45 UTC

svn commit: r1135674 - in /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph: domain/basic/DirectedGraphImpl.java domain/basic/UndirectedGraphImpl.java factory/

Author: simonetripodi
Date: Tue Jun 14 16:15:45 2011
New Revision: 1135674

URL: http://svn.apache.org/viewvc?rev=1135674&view=rev
Log:
dropped Factory & Proxy implementations, it was too prototypal to continue following the development

Removed:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/factory/
Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java?rev=1135674&r1=1135673&r2=1135674&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/DirectedGraphImpl.java Tue Jun 14 16:15:45 2011
@@ -21,9 +21,6 @@ package org.apache.commons.graph.domain.
 
 import static java.util.Collections.unmodifiableSet;
 
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -44,7 +41,7 @@ import org.apache.commons.graph.contract
  * Description of the Class
  */
 public class DirectedGraphImpl<V extends Vertex, WE extends WeightedEdge<V>>
-    implements DirectedGraph<V, WE>, WeightedGraph<V, WE>, MutableDirectedGraph<V, WE>, InvocationHandler
+    implements DirectedGraph<V, WE>, WeightedGraph<V, WE>, MutableDirectedGraph<V, WE>
 {
 
     private V root = null;
@@ -417,20 +414,4 @@ public class DirectedGraphImpl<V extends
         return 1.0;
     }
 
-    /**
-     * {@inheritDoc}
-     */
-    public Object invoke( Object proxy, Method method, Object args[] )
-        throws Throwable
-    {
-        try
-        {
-            return method.invoke( this, args );
-        }
-        catch ( InvocationTargetException ex )
-        {
-            throw ex.getTargetException();
-        }
-    }
-
 }

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java?rev=1135674&r1=1135673&r2=1135674&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/domain/basic/UndirectedGraphImpl.java Tue Jun 14 16:15:45 2011
@@ -21,9 +21,6 @@ package org.apache.commons.graph.domain.
 
 import static java.util.Collections.unmodifiableSet;
 
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -41,7 +38,7 @@ import org.apache.commons.graph.Weighted
  * Description of the Class
  */
 public class UndirectedGraphImpl<V extends Vertex, WE extends WeightedEdge<V>>
-    implements UndirectedGraph<V, WE>, WeightedGraph<V, WE>, MutableGraph<V, WE>, InvocationHandler
+    implements UndirectedGraph<V, WE>, WeightedGraph<V, WE>, MutableGraph<V, WE>
 {
 
     private final Set<V> vertices = new HashSet<V>();
@@ -220,20 +217,4 @@ public class UndirectedGraphImpl<V exten
         return 1;
     }
 
-    /**
-     * {@inheritDoc}
-     */
-    public Object invoke( Object proxy, Method method, Object args[] )
-        throws Throwable
-    {
-        try
-        {
-            return method.invoke( this, args );
-        }
-        catch ( InvocationTargetException ex )
-        {
-            throw ex.getTargetException();
-        }
-    }
-
 }