Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 31568 invoked from network); 20 Jan 2007 08:26:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2007 08:26:04 -0000 Received: (qmail 33753 invoked by uid 500); 20 Jan 2007 08:26:07 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 33724 invoked by uid 500); 20 Jan 2007 08:26:07 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 33714 invoked by uid 99); 20 Jan 2007 08:26:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jan 2007 00:26:07 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jan 2007 00:26:00 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 9BE851A981A; Sat, 20 Jan 2007 00:24:54 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@jackrabbit.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070120082454.9BE851A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 SessionImpl ... */ -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