You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jc...@apache.org on 2013/07/27 18:24:14 UTC
svn commit: r1507685 -
/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java
Author: jcarman
Date: Sat Jul 27 16:24:14 2013
New Revision: 1507685
URL: http://svn.apache.org/r1507685
Log:
PROXY-21: Remove Cyclic Package Dependencies
Modified:
commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java
Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java?rev=1507685&r1=1507684&r2=1507685&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyUtils.java Sat Jul 27 16:24:14 2013
@@ -17,8 +17,6 @@
package org.apache.commons.proxy2;
-import org.apache.commons.proxy2.invoker.NullInvoker;
-
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.LinkedList;
@@ -71,31 +69,6 @@ public final class ProxyUtils
}
/**
- * Creates a "null object" which implements the <code>proxyClasses</code>.
- *
- * @param proxyFactory the proxy factory to be used to create the proxy object
- * @param proxyClasses the proxy interfaces
- * @return a "null object" which implements the <code>proxyClasses</code>.
- */
- public static Object createNullObject(ProxyFactory proxyFactory, Class<?>[] proxyClasses)
- {
- return proxyFactory.createInvokerProxy(NullInvoker.INSTANCE, proxyClasses);
- }
-
- /**
- * Creates a "null object" which implements the <code>proxyClasses</code>.
- *
- * @param proxyFactory the proxy factory to be used to create the proxy object
- * @param classLoader the class loader to be used by the proxy factory to create the proxy object
- * @param proxyClasses the proxy interfaces
- * @return a "null object" which implements the <code>proxyClasses</code>.
- */
- public static Object createNullObject(ProxyFactory proxyFactory, ClassLoader classLoader, Class<?>[] proxyClasses)
- {
- return proxyFactory.createInvokerProxy(classLoader, NullInvoker.INSTANCE, proxyClasses);
- }
-
- /**
* <p>Gets an array of {@link Class} objects representing all interfaces implemented by the given class and its
* superclasses.</p>
* <p/>