Package org.frankframework.jndi
Class JndiObjectLocator
java.lang.Object
org.frankframework.jndi.JndiObjectLocator
- All Implemented Interfaces:
 IObjectLocator,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class JndiObjectLocator
extends Object
implements IObjectLocator, org.springframework.context.ApplicationContextAware
Class that does the actual JDNI lookup.
 Uses a Spring JndiTemplate with the given environment settings.
- Author:
 - Niels Meijer
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.jndi.JndiTemplategetJndiTemplate(Properties jndiEnvironment) <O> Olookup(String jndiName, Properties jndiEnvironment, Class<O> lookupClass) Attempt to lookup the Object in the JNDI.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)  
- 
Constructor Details
- 
JndiObjectLocator
public JndiObjectLocator() 
 - 
 - 
Method Details
- 
getJndiTemplate
 - 
lookup
@Nullable public <O> O lookup(@Nonnull String jndiName, @Nullable Properties jndiEnvironment, @Nullable Class<O> lookupClass) throws NamingException Attempt to lookup the Object in the JNDI. If it cannot find the object, attempt to try again (without a JNDI-prefix).- Specified by:
 lookupin interfaceIObjectLocator- Type Parameters:
 O- Object class used by clients- Throws:
 NamingException
 - 
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
 setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
 org.springframework.beans.BeansException
 
 -