jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r365897 - /incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
Date Wed, 04 Jan 2006 11:57:10 GMT
Author: jukka
Date: Wed Jan  4 03:57:02 2006
New Revision: 365897

URL: http://svn.apache.org/viewcvs?rev=365897&view=rev
Log:
JCR-RMI: Allow overriding of ServerAdapterFactory.optimizeIterator().

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java?rev=365897&r1=365896&r2=365897&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
Wed Jan  4 03:57:02 2006
@@ -343,12 +343,14 @@
      * iterator, then the iterator instance is discarded and just the elements
      * are wrapped into a {@link ArrayIterator} instance to be passed to the
      * client.
+     * <p>
+     * Subclasses can override this method to provide alternative optimizations.
      *
      * @param remote remote iterator
      * @return optimized remote iterator
      * @throws RemoteException on RMI errors
      */
-    private RemoteIterator optimizeIterator(RemoteIterator remote)
+    protected RemoteIterator optimizeIterator(RemoteIterator remote)
             throws RemoteException {
         Object[] elements = remote.nextObjects();
         long size = remote.getSize();



Mime
View raw message