1 package org.apache.turbine.services.naming;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import javax.naming.Context;
20
21 import org.apache.turbine.services.Service;
22
23 /***
24 * Implementations of the NamingService interface provide JNDI naming
25 * contexts.
26 *
27 * @author <a href="mailto:greg@shwoop.com">Greg Ritter</a>
28 * @version $Id: NamingService.java 264148 2005-08-29 14:21:04Z henning $
29 */
30 public interface NamingService
31 extends Service
32 {
33 String SERVICE_NAME = "NamingService";
34
35 /***
36 * Return the Context with the specified name.
37 *
38 * @param name The name of the context.
39 * @return The context with the specified name, or null if no context
40 * exists with that name.
41 */
42 Context getContext(String name);
43 }