jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r498089 - in /jackrabbit/trunk: jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
Date Sat, 20 Jan 2007 08:24:54 GMT
Author: jukka
Date: Sat Jan 20 00:24:53 2007
New Revision: 498089

URL: http://svn.apache.org/viewvc?view=rev&rev=498089
Log:
JCR-688: Added the composite NamePathResolver interface for cases where a single dependency
for both name and path resolution is needed but a full SessionImpl dependency is not appropriate.

Added:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
  (with props)
Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java?view=diff&rev=498089&r1=498088&r2=498089
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
Sat Jan 20 00:24:53 2007
@@ -39,10 +39,9 @@
 import org.apache.jackrabbit.core.util.Dumpable;
 import org.apache.jackrabbit.core.lock.LockManager;
 import org.apache.jackrabbit.name.NameException;
-import org.apache.jackrabbit.name.NameResolver;
+import org.apache.jackrabbit.name.NamePathResolver;
 import org.apache.jackrabbit.name.NamespaceResolver;
 import org.apache.jackrabbit.name.Path;
-import org.apache.jackrabbit.name.PathResolver;
 import org.apache.jackrabbit.name.QName;
 import org.apache.jackrabbit.uuid.UUID;
 import org.slf4j.Logger;
@@ -101,8 +100,7 @@
 /**
  * A <code>SessionImpl</code> ...
  */
-public class SessionImpl
-        implements Session, NameResolver, PathResolver, Dumpable {
+public class SessionImpl implements Session, NamePathResolver, Dumpable {
 
     private static Logger log = LoggerFactory.getLogger(SessionImpl.class);
 

Added: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java?view=auto&rev=498089
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
(added)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
Sat Jan 20 00:24:53 2007
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.name;
+
+/**
+ * Combined name and path resolver. Can be used instead of the component
+ * name and path resolver interfaces when a single dependency for both
+ * name and path resolution is needed.
+ */
+public interface NamePathResolver extends NameResolver, PathResolver {
+}

Propchange: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/NamePathResolver.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message