| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NamingService |
|
| 1.0;1 |
| 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 615328 2008-01-25 20:25:05Z tv $ | |
| 34 | */ | |
| 35 | public interface NamingService | |
| 36 | extends Service | |
| 37 | { | |
| 38 | String SERVICE_NAME = "NamingService"; | |
| 39 | ||
| 40 | /** | |
| 41 | * Return the Context with the specified name. | |
| 42 | * | |
| 43 | * @param name The name of the context. | |
| 44 | * @return The context with the specified name, or null if no context | |
| 45 | * exists with that name. | |
| 46 | */ | |
| 47 | Context getContext(String name); | |
| 48 | } |