commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r320777 - in /jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy: ObjectProvider.java factory/javassist/JavassistProxyFactory.java interceptor/ExecutorMethodInterceptor.java
Date Thu, 13 Oct 2005 14:16:57 GMT
Author: jcarman
Date: Thu Oct 13 07:16:53 2005
New Revision: 320777

URL: http://svn.apache.org/viewcvs?rev=320777&view=rev
Log:
Fixing long lines.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/ObjectProvider.java
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/factory/javassist/JavassistProxyFactory.java
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/ExecutorMethodInterceptor.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/ObjectProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/ObjectProvider.java?rev=320777&r1=320776&r2=320777&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/ObjectProvider.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/ObjectProvider.java
Thu Oct 13 07:16:53 2005
@@ -29,8 +29,9 @@
 //----------------------------------------------------------------------------------------------------------------------
 
     /**
-     * Returns an object.  Implementing classes should throw a {@link org.apache.commons.proxy.exception.ObjectProviderException}
-     * if any problems arise while constructing/finding the object.
+     * Returns an object.  Implementing classes should throw a
+     * {@link org.apache.commons.proxy.exception.ObjectProviderException} if any problems
arise while
+     * constructing/finding the object.
      *
      * @return the object on which the method should be called
      */

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/factory/javassist/JavassistProxyFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/factory/javassist/JavassistProxyFactory.java?rev=320777&r1=320776&r2=320777&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/factory/javassist/JavassistProxyFactory.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/factory/javassist/JavassistProxyFactory.java
Thu Oct 13 07:16:53 2005
@@ -60,7 +60,8 @@
         try
         {
             final Class clazz = delegatingProxyClassCache.getProxyClass( classLoader, proxyClasses
);
-            return clazz.getConstructor( ProxyUtils.toClassArray( ObjectProvider.class )
).newInstance( ProxyUtils.toObjectArray( targetProvider ) );
+            return clazz.getConstructor( ProxyUtils.toClassArray( ObjectProvider.class )
)
+                    .newInstance( ProxyUtils.toObjectArray( targetProvider ) );
         }
         catch( Exception e )
         {
@@ -75,8 +76,8 @@
         {
             final Class clazz = interceptingProxyClassCache.getProxyClass( classLoader, proxyClasses
);
             final Method[] methods = AbstractProxyClassGenerator.getImplementationMethods(
proxyClasses );
-            return clazz.getConstructor( new Class[] { Method[].class, Object.class, MethodInterceptor.class
} )
-                    .newInstance( new Object[] { methods, target, interceptor } );
+            return clazz.getConstructor( new Class[]{ Method[].class, Object.class, MethodInterceptor.class
} )
+                    .newInstance( new Object[]{ methods, target, interceptor } );
         }
         catch( Exception e )
         {
@@ -91,8 +92,8 @@
         {
             final Class clazz = invocationHandlerProxyClassCache.getProxyClass( classLoader,
proxyClasses );
             final Method[] methods = AbstractProxyClassGenerator.getImplementationMethods(
proxyClasses );
-            return clazz.getConstructor( new Class[] { Method[].class, InvocationHandler.class
} )
-                    .newInstance( new Object[] { methods, invocationHandler } );
+            return clazz.getConstructor( new Class[]{ Method[].class, InvocationHandler.class
} )
+                    .newInstance( new Object[]{ methods, invocationHandler } );
         }
         catch( Exception e )
         {
@@ -117,7 +118,7 @@
                 JavassistUtils.addField( InvocationHandler.class, "invocationHandler", proxyClass
);
                 final CtConstructor proxyConstructor = new CtConstructor(
                         JavassistUtils.resolve(
-                                new Class[]{Method[].class, InvocationHandler.class} ),
+                                new Class[]{ Method[].class, InvocationHandler.class } ),
                         proxyClass );
                 proxyConstructor
                         .setBody( "{\n\tthis.methods = $1;\n\tthis.invocationHandler = $2;
}" );
@@ -156,7 +157,7 @@
                 JavassistUtils.addField( MethodInterceptor.class, "interceptor", proxyClass
);
                 final CtConstructor proxyConstructor = new CtConstructor(
                         JavassistUtils.resolve(
-                                new Class[]{Method[].class, Object.class, MethodInterceptor.class}
),
+                                new Class[]{ Method[].class, Object.class, MethodInterceptor.class
} ),
                         proxyClass );
                 proxyConstructor
                         .setBody( "{\n\tthis.methods = $1;\n\tthis.target = $2;\n\tthis.interceptor
= $3; }" );
@@ -192,7 +193,7 @@
                 final CtClass proxyClass = JavassistUtils.createClass( getSuperclass( proxyClasses
) );
                 JavassistUtils.addField( ObjectProvider.class, "provider", proxyClass );
                 final CtConstructor proxyConstructor = new CtConstructor(
-                        JavassistUtils.resolve( new Class[]{ObjectProvider.class} ),
+                        JavassistUtils.resolve( new Class[]{ ObjectProvider.class } ),
                         proxyClass );
                 proxyConstructor.setBody( "{ this.provider = $1; }" );
                 proxyClass.addConstructor( proxyConstructor );

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/ExecutorMethodInterceptor.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/ExecutorMethodInterceptor.java?rev=320777&r1=320776&r2=320777&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/ExecutorMethodInterceptor.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/ExecutorMethodInterceptor.java
Thu Oct 13 07:16:53 2005
@@ -25,8 +25,8 @@
  * <p/>
  * <b>Note</b>: Only <em>void</em> methods can be intercepted using
this class!  Any attempts to intercept non-void
  * methods will result in an {@link IllegalArgumentException}.  If the proxy interfaces include
non-void methods, try
- * using a {@link FilteredMethodInterceptor} along with a {@link org.apache.commons.proxy.interceptor.filter.ReturnTypeFilter}
- * to wrap an instance of this class.
+ * using a {@link FilteredMethodInterceptor} along with a
+ * {@link org.apache.commons.proxy.interceptor.filter.ReturnTypeFilter} to wrap an instance
of this class.
  *
  * @author James Carman
  * @version 1.0



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message