View Javadoc

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