Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JndiNameResolver |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.transport.jms.jndi; | |
8 | ||
9 | import org.mule.api.lifecycle.Lifecycle; | |
10 | ||
11 | import javax.naming.NamingException; | |
12 | ||
13 | /** | |
14 | * Defines a strategy for lookup objects by name using JNDI. | |
15 | */ | |
16 | public interface JndiNameResolver extends Lifecycle | |
17 | { | |
18 | ||
19 | /** | |
20 | * Looks up an object by name. | |
21 | * | |
22 | * @param name the name of the object to search for | |
23 | * @return the object if is found | |
24 | * @throws NamingException is there is an error during the lookup. | |
25 | */ | |
26 | Object lookup(String name) throws NamingException; | |
27 | } |