jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r782621 - in /jackrabbit/trunk: ./ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/ jackrabbit-co...
Date Mon, 08 Jun 2009 13:43:29 GMT
Author: jukka
Date: Mon Jun  8 13:43:29 2009
New Revision: 782621

URL: http://svn.apache.org/viewvc?rev=782621&view=rev
Log:
JCR-1104: JSR 283 Support 

Upgrade to jcr-2.0-b15.

Modified:
    jackrabbit/trunk/README.txt
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/FilteredEventIterator.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationManagerImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/JcrVersionManagerImpl.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/iterator/EventIteratorAdapter.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/JcrVersionManager.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
    jackrabbit/trunk/jackrabbit-parent/pom.xml
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/PropertyDefinitionTemplateImpl.java
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/value/QValueFactoryImpl.java
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/QValueFactoryImpl.java

Modified: jackrabbit/trunk/README.txt
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/README.txt?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/README.txt (original)
+++ jackrabbit/trunk/README.txt Mon Jun  8 13:43:29 2009
@@ -20,15 +20,12 @@
 Building Jackrabbit
 ===================
 
-To build Jackrabbit, you first need to download the PFD version of the
-JCR 2.0 specification from http://jcp.org/en/jsr/detail?id=283 and install
-the contained jcr-2.0.jar file to your local Maven repository.
-
-Use the following command to install the required JCR API jar with metadata
-included in the jcr-2.0-pfd.xml file in this directory:
+To build Jackrabbit, you first need to download the jcr-2.0-b15.jar and
+jcr-2.0-b15.xml files from https://issues.apache.org/jira/browse/JCR-1104
+and install them to your local Maven repository:
 
     mvn install:install-file \
-        -Dfile=/path/to/lib/jcr-2.0.jar -DpomFile=jcr-2.0-pfd.xml    
+        -Dfile=jcr-2.0-b15.jar -DpomFile=jcr-2.0-b15.xml
 
 Once you've installed the jar, you can build Jackrabbit like this:
 

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Mon Jun  8 13:43:29 2009
@@ -4645,9 +4645,7 @@
     /**
      * {@inheritDoc}
      */
-    // TODO rename method to 'getProperties' once JCR 2.0 api has been fixed
-    public PropertyIterator getProperty(String[]
-            nameGlobs)
+    public PropertyIterator getProperties(String[] nameGlobs)
             throws RepositoryException {
         // check state of this instance
         sanityCheck();

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
Mon Jun  8 13:43:29 2009
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.core.observation;
 
-import java.util.Calendar;
 import java.util.List;
 import java.util.LinkedList;
 import java.util.NoSuchElementException;
@@ -177,7 +176,7 @@
         return next;
     }
 
-    public Calendar getDate() {
+    public long getDate() {
         // TODO
         throw new RuntimeException("Not implemented yet, see JCR-2086");
     }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/FilteredEventIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/FilteredEventIterator.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/FilteredEventIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/FilteredEventIterator.java
Mon Jun  8 13:43:29 2009
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.core.observation;
 
-import java.util.Calendar;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 import java.util.Set;
@@ -126,7 +125,7 @@
         }
     }
 
-    public Calendar getDate() {
+    public long getDate() {
         // TODO
         throw new RuntimeException("Not implemented yet, see JCR-2086");
     }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationManagerImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationManagerImpl.java
Mon Jun  8 13:43:29 2009
@@ -267,6 +267,16 @@
                 clusterNode.getId());
     }
 
+    // TODO: Removed in a more recent version of the JCR API jar
+    @Deprecated
+    public EventJournal getEventJournal(
+            int eventTypes, String absPath, boolean isDeep,
+            String[] uuid, String[] nodeTypeName, boolean noLocal)
+            throws RepositoryException {
+        return getEventJournal(eventTypes, absPath, isDeep, uuid, nodeTypeName);
+    }
+
+
     /**
      * Returns an unfiltered event journal for this workspace.
      *

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBFileValue.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
Mon Jun  8 13:43:29 2009
@@ -182,4 +182,9 @@
     public long getSize() throws RepositoryException {
         return getLength();
     }
+
+    public void dispose() {
+        discard();
+    }
+
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/JcrVersionManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/JcrVersionManagerImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/JcrVersionManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/JcrVersionManagerImpl.java
Mon Jun  8 13:43:29 2009
@@ -213,7 +213,15 @@
     /**
      * {@inheritDoc}
      */
+    public void removeActivity(Node node) throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("comming soon...");
+    }
+
+    /**
+     * {@inheritDoc}
+     */
     public NodeIterator merge(Node activityNode) throws RepositoryException {
         throw new UnsupportedRepositoryOperationException("comming soon...");
     }
+
 }
\ No newline at end of file

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/JcrUtils.java
Mon Jun  8 13:43:29 2009
@@ -151,11 +151,11 @@
      * @param pattern property name globs
      * @return matching properties of the node
      * @throws RepositoryException
-     *         if the {@link Node#getProperty(String[])} call fails
+     *         if the {@link Node#getProperties(String[])} call fails
      */
     public static Iterable<Property> getProperties(Node node, String[] globs)
             throws RepositoryException {
-        return new PropertyIterable(node.getProperty(globs));
+        return new PropertyIterable(node.getProperties(globs));
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/iterator/EventIteratorAdapter.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/iterator/EventIteratorAdapter.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/iterator/EventIteratorAdapter.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/iterator/EventIteratorAdapter.java
Mon Jun  8 13:43:29 2009
@@ -33,15 +33,9 @@
         implements EventIterator {
 
     /**
-     * Static instance of an empty {@link EventIterator}.
-     */
-    public static final EventIterator EMPTY =
-        new EventIteratorAdapter(RangeIteratorAdapter.EMPTY);
-
-    /**
      * Date associated with this iterator.
      */
-    private final Calendar date;
+    private final long date;
 
     /**
      * Creates an adapter for the given {@link RangeIterator}.
@@ -58,9 +52,9 @@
      *
      * @param iterator iterator of {@link Event}s
      */
-    public EventIteratorAdapter(RangeIterator iterator) {
+    public EventIteratorAdapter(RangeIterator iterator, long date) {
         super(iterator);
-        this.date = null;
+        this.date = date;
     }
 
     /**
@@ -68,9 +62,9 @@
      *
      * @param iterator iterator of {@link Event}s.
      */
-    public EventIteratorAdapter(Iterator iterator) {
+    public EventIteratorAdapter(Iterator iterator, long date) {
         super(new RangeIteratorAdapter(iterator));
-        this.date = null;
+        this.date = date;
     }
 
     /**
@@ -78,9 +72,9 @@
      *
      * @param collection collection of {@link Event}s
      */
-    public EventIteratorAdapter(Collection collection) {
+    public EventIteratorAdapter(Collection collection, long date) {
         super(new RangeIteratorAdapter(collection));
-        this.date = null;
+        this.date = date;
     }
 
     //-------------------------------------------------------< EventIterator >
@@ -100,7 +94,7 @@
      *
      * @return date associated with this iterator, or <code>null</code> 
      */
-    public Calendar getDate() {
+    public long getDate() {
         return date;
     }
 

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/JcrVersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/JcrVersionManager.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/JcrVersionManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/JcrVersionManager.java
Mon Jun  8 13:43:29 2009
@@ -245,6 +245,15 @@
     }
 
     /**
+     * @see javax.jcr.version.VersionManager#removeActivity(Node)
+     */
+    public void removeActivity(Node node) throws RepositoryException {
+        // TODO
+        throw new UnsupportedRepositoryOperationException(
+                "JCR-2104: JSR 283 Versioning. Implementation missing");
+    }
+
+    /**
      * @see javax.jcr.version.VersionManager#merge(Node)
      */
     public NodeIterator merge(Node activityNode) throws VersionException, AccessDeniedException,
MergeException, LockException, InvalidItemStateException, RepositoryException {
@@ -252,4 +261,5 @@
         Iterator failedIds = vMgr.mergeActivity((NodeState) ((NodeImpl) activityNode).getItemState());
         return new LazyItemIterator(itemManager, session.getHierarchyManager(), failedIds);
     }
+
 }
\ No newline at end of file

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
Mon Jun  8 13:43:29 2009
@@ -512,10 +512,10 @@
     }
 
     /**
-     * TODO: method name is wrong! should be getProperties (Issue 736 of the pfd)
-     * @see javax.jcr.Node#getProperty(String)
+     * @see javax.jcr.Node#getProperties(String)
      */
-    public PropertyIterator getProperty(String[] nameGlobs) throws RepositoryException {
+    public PropertyIterator getProperties(String[] nameGlobs)
+            throws RepositoryException {
         checkStatus();
         List properties = new ArrayList();
         // traverse child properties using a filtering item visitor

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
Mon Jun  8 13:43:29 2009
@@ -458,7 +458,15 @@
         return getPropertyState().getType();
     }
 
-    //-----------------------------------------------------------< ItemImpl >---
+    /**
+     *
+     * @return true if the definition indicates that this Property is multivalued.
+     */
+    public boolean isMultiple() {
+        return getPropertyState().isMultiValued();
+    }
+
+   //-----------------------------------------------------------< ItemImpl >---
     /**
      * Returns the Name defined with this <code>PropertyState</code>
      *
@@ -487,13 +495,6 @@
     }
 
     //---------------------------------------------< private implementation >---
-    /**
-     *
-     * @return true if the definition indicates that this Property is multivalued.
-     */
-    private boolean isMultiple() {
-        return getPropertyState().isMultiValued();
-    }
 
     /**
      *

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
Mon Jun  8 13:43:29 2009
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.jcr2spi.observation;
 
-import java.util.Calendar;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 
@@ -129,7 +128,7 @@
     /**
      * @see javax.jcr.observation.EventIterator#getDate()
      */
-    public Calendar getDate() {
+    public long getDate() {
         // TODO
         throw new UnsupportedOperationException("JCR-2108. Implementation Missing");
     }

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
Mon Jun  8 13:43:29 2009
@@ -185,6 +185,13 @@
         throw new UnsupportedRepositoryOperationException("JCR-2108");
     }
 
+    public EventJournal getEventJournal(
+            int eventTypes, String absPath, boolean isDeep,
+            String[] uuid, String[] nodeTypeName, boolean noLocal)
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
+    }
+
     /**
      * @see javax.jcr.observation.ObservationManager#setUserData(String) 
      */

Modified: jackrabbit/trunk/jackrabbit-parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-parent/pom.xml?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-parent/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-parent/pom.xml Mon Jun  8 13:43:29 2009
@@ -237,7 +237,7 @@
       <dependency>
         <groupId>javax.jcr</groupId>
         <artifactId>jcr</artifactId>
-        <version>2.0-pfd</version>
+        <version>2.0-15</version>
         <scope>provided</scope>
       </dependency>
       <dependency>

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/PropertyDefinitionTemplateImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/PropertyDefinitionTemplateImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/PropertyDefinitionTemplateImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/PropertyDefinitionTemplateImpl.java
Mon Jun  8 13:43:29 2009
@@ -96,7 +96,7 @@
     /**
      * {@inheritDoc}
      */
-    public void setAvailablrQueryOperators(String[] operators) {
+    public void setAvailableQueryOperators(String[] operators) {
         queryOperators = operators;
     }
 
@@ -163,4 +163,5 @@
     public boolean isQueryOrderable() {
         return queryOrderable;
     }
+
 }

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/value/QValueFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/value/QValueFactoryImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/value/QValueFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/value/QValueFactoryImpl.java
Mon Jun  8 13:43:29 2009
@@ -300,6 +300,10 @@
                 public long getSize() throws RepositoryException {
                     return getLength();
                 }
+
+                public void dispose() {
+                }
+
             };
         }
 
@@ -696,6 +700,10 @@
             }
         }
 
+        public void dispose() {
+            discard();
+        }
+
         //-----------------------------------------------< java.lang.Object >---
         /**
          * Returns a string representation of this <code>BinaryQValue</code>

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/QValueFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/QValueFactoryImpl.java?rev=782621&r1=782620&r2=782621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/QValueFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/QValueFactoryImpl.java
Mon Jun  8 13:43:29 2009
@@ -456,6 +456,10 @@
                 public long getSize() throws RepositoryException {
                     return getLength();
                 }
+
+                public void dispose() {
+                }
+
             };
         }
 
@@ -874,6 +878,10 @@
                 public long getSize() throws RepositoryException {
                     return getLength();
                 }
+
+                public void dispose() {
+                }
+
             };
         }
 



Mime
View raw message