You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2006/01/04 12:57:10 UTC
svn commit: r365897 -
/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
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();