1 package org.apache.turbine.services.naming;
2
3
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 */
22
23
24 import javax.naming.Context;
25
26 import org.apache.turbine.services.Service;
27
28 /**
29 * Implementations of the NamingService interface provide JNDI naming
30 * contexts.
31 *
32 * @author <a href="mailto:greg@shwoop.com">Greg Ritter</a>
33 * @version $Id: NamingService.java 1706239 2015-10-01 13:18:35Z tv $
34 */
35 public interface NamingService
36 extends Service
37 {
38 /**
39 * The service name
40 */
41 String SERVICE_NAME = "NamingService";
42
43 /**
44 * Return the Context with the specified name.
45 *
46 * @param name The name of the context.
47 * @return The context with the specified name, or null if no context
48 * exists with that name.
49 */
50 Context getContext(String name);
51 }