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