001package org.apache.turbine.services.naming;
002
003
004/*
005 * Licensed to the Apache Software Foundation (ASF) under one
006 * or more contributor license agreements.  See the NOTICE file
007 * distributed with this work for additional information
008 * regarding copyright ownership.  The ASF licenses this file
009 * to you under the Apache License, Version 2.0 (the
010 * "License"); you may not use this file except in compliance
011 * with the License.  You may obtain a copy of the License at
012 *
013 *   http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing,
016 * software distributed under the License is distributed on an
017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018 * KIND, either express or implied.  See the License for the
019 * specific language governing permissions and limitations
020 * under the License.
021 */
022
023
024import javax.naming.Context;
025
026import org.apache.turbine.services.Service;
027
028/**
029 * Implementations of the NamingService interface provide JNDI naming
030 * contexts.
031 *
032 * @author <a href="mailto:greg@shwoop.com">Greg Ritter</a>
033 * @version $Id$
034 */
035public interface NamingService
036        extends Service
037{
038    /**
039     * The service name
040     */
041    String SERVICE_NAME = "NamingService";
042
043    /**
044     * Return the Context with the specified name.
045     *
046     * @param name The name of the context.
047     * @return The context with the specified name, or null if no context
048     * exists with that name.
049     */
050    Context getContext(String name);
051}