jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1170234 - in /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi: NodeImpl.java StaleProperty.java
Date Tue, 13 Sep 2011 16:55:35 GMT
Author: mduerig
Date: Tue Sep 13 16:55:34 2011
New Revision: 1170234

URL: http://svn.apache.org/viewvc?rev=1170234&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP) 
minor refactor

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/StaleProperty.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java?rev=1170234&r1=1170233&r2=1170234&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
Tue Sep 13 16:55:34 2011
@@ -240,7 +240,7 @@ public class NodeImpl extends ItemImpl i
             prop.setValue(v);
         } else {
             if (value == null) {
-                return new StaleProperty();
+                return StaleProperty.STALE_PROPERTY;
             } else {
                 // new property to be added
                 prop = createProperty(propName, value, type);

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/StaleProperty.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/StaleProperty.java?rev=1170234&r1=1170233&r2=1170234&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/StaleProperty.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/StaleProperty.java
Tue Sep 13 16:55:34 2011
@@ -19,23 +19,15 @@ package org.apache.jackrabbit.jcr2spi;
 
 import org.apache.jackrabbit.commons.AbstractProperty;
 
-import javax.jcr.AccessDeniedException;
 import javax.jcr.Binary;
 import javax.jcr.InvalidItemStateException;
 import javax.jcr.Item;
-import javax.jcr.ItemExistsException;
-import javax.jcr.ItemNotFoundException;
 import javax.jcr.Node;
-import javax.jcr.ReferentialIntegrityException;
+import javax.jcr.Property;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.Value;
-import javax.jcr.ValueFormatException;
-import javax.jcr.lock.LockException;
-import javax.jcr.nodetype.ConstraintViolationException;
-import javax.jcr.nodetype.NoSuchNodeTypeException;
 import javax.jcr.nodetype.PropertyDefinition;
-import javax.jcr.version.VersionException;
 import java.math.BigDecimal;
 
 /**
@@ -43,6 +35,9 @@ import java.math.BigDecimal;
  * all method calls.
  */
 public class StaleProperty extends AbstractProperty {
+    public static final Property STALE_PROPERTY = new StaleProperty();
+
+    private StaleProperty() {}
     
     @Override
     public void setValue(Binary value) throws RepositoryException {



Mime
View raw message