jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r770197 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java
Date Thu, 30 Apr 2009 12:24:15 GMT
Author: jukka
Date: Thu Apr 30 12:24:14 2009
New Revision: 770197

URL: http://svn.apache.org/viewvc?rev=770197&view=rev
Log:
JCR-2056: JSR 283: Binary interfaces

Add dummy implementations of ValueFactory.createBinary(InputStream) and .createValue(Binary)

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java?rev=770197&r1=770196&r2=770197&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/ValueFactoryImpl.java
Thu Apr 30 12:24:14 2009
@@ -16,14 +16,17 @@
  */
 package org.apache.jackrabbit.value;
 
+import java.io.InputStream;
+import java.util.Calendar;
+
+import javax.jcr.Binary;
 import javax.jcr.Node;
+import javax.jcr.PropertyType;
 import javax.jcr.RepositoryException;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Value;
 import javax.jcr.ValueFactory;
 import javax.jcr.ValueFormatException;
-import javax.jcr.PropertyType;
-import java.io.InputStream;
-import java.util.Calendar;
 
 /**
  * This class implements the <code>ValueFactory</code> interface.
@@ -137,4 +140,13 @@
         }
         return val;
     }
+
+    public Binary createBinary(InputStream stream) throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-2056");
+    }
+
+    public Value createValue(Binary value) {
+        throw new UnsupportedOperationException("JCR-2056");
+    }
+
 }



Mime
View raw message