commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1525261 - in /commons/proper/proxy/branches/version-2.0-work/core/src: main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java test/java/org/apache/commons/proxy2/util/MockInvocation.java
Date Sat, 21 Sep 2013 17:17:35 GMT
Author: mbenson
Date: Sat Sep 21 17:17:34 2013
New Revision: 1525261

URL: http://svn.apache.org/r1525261
Log:
revert too-big commit

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java
    commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java?rev=1525261&r1=1525260&r2=1525261&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java
(original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/interceptor/InterceptorUtils.java
Sat Sep 21 17:17:34 2013
@@ -18,7 +18,6 @@
 package org.apache.commons.proxy2.interceptor;
 
 import org.apache.commons.proxy2.Interceptor;
-import org.apache.commons.proxy2.Invoker;
 import org.apache.commons.proxy2.ObjectProvider;
 import org.apache.commons.proxy2.provider.ObjectProviderUtils;
 
@@ -72,21 +71,12 @@ public final class InterceptorUtils
         return new ThrowingInterceptor(provider);
     }
 
-    /**
-     * Creates an {@link Interceptor} that delegates to the specified {@link Invoker}.
-     * @param invoker delegate
-     * @return invoker {@link Interceptor}
-     */
-    public static Interceptor invoking(Invoker invoker)
-    {
-        return new InvokerInterceptor(invoker);
-    }
-
 //----------------------------------------------------------------------------------------------------------------------
 // Constructors
 //----------------------------------------------------------------------------------------------------------------------
 
     private InterceptorUtils()
     {
+
     }
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java?rev=1525261&r1=1525260&r2=1525261&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
(original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/test/java/org/apache/commons/proxy2/util/MockInvocation.java
Sat Sep 21 17:17:34 2013
@@ -45,7 +45,7 @@ public class MockInvocation implements I
     @Override
     public Object getProxy()
     {
-        return null;
+        throw new UnsupportedOperationException("Proxy objects aren't supported.");
     }
 
     @Override



Mime
View raw message