jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r594475 - /jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java
Date Tue, 13 Nov 2007 10:39:30 GMT
Author: angela
Date: Tue Nov 13 02:39:30 2007
New Revision: 594475

URL: http://svn.apache.org/viewvc?rev=594475&view=rev
Log:
JCR-1152 SPI implementations currently need to provide implementations of both ValueFactory
and QValueFactory (adjust to removed 2nd valuefactoryimpl)

Modified:
    jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java

Modified: jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java?rev=594475&r1=594474&r2=594475&view=diff
==============================================================================
--- jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java
(original)
+++ jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/QPropertyDefinitionImpl.java
Tue Nov 13 02:39:30 2007
@@ -24,7 +24,7 @@
 import org.apache.jackrabbit.webdav.xml.DomUtil;
 import org.apache.jackrabbit.webdav.xml.ElementIterator;
 import org.apache.jackrabbit.value.ValueFormat;
-import org.apache.jackrabbit.value.ValueFactoryImplEx;
+import org.apache.jackrabbit.value.ValueFactoryQImpl;
 import org.apache.jackrabbit.conversion.NamePathResolver;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -43,11 +43,6 @@
 public class QPropertyDefinitionImpl extends QItemDefinitionImpl implements QPropertyDefinition
{
 
     /**
-     * Logger instance for this class
-     */
-    private static Logger log = LoggerFactory.getLogger(QPropertyDefinitionImpl.class);
-
-    /**
      * The required type.
      */
     private final int requiredType;
@@ -101,7 +96,7 @@
                 QValue qValue;
                 if (requiredType == PropertyType.BINARY) {
                     // TODO: improve
-                    Value v = ValueFactoryImplEx.getInstance().createValue(jcrVal, requiredType);
+                    Value v = new ValueFactoryQImpl(qValueFactory, resolver).createValue(jcrVal,
requiredType);
                     qValue = ValueFormat.getQValue(v, resolver, qValueFactory);
                 } else {
                     qValue = ValueFormat.getQValue(jcrVal, requiredType, resolver, qValueFactory);



Mime
View raw message