Package org.springframework.jndi
Class JndiAccessor
- java.lang.Object
- org.springframework.jndi.JndiAccessor
- Direct Known Subclasses:
JndiLocatorSupport
public class JndiAccessor extends Object
Convenient superclass for JNDI accessors, providing "jndiTemplate" and "jndiEnvironment" bean properties.- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
setJndiTemplate(org.springframework.jndi.JndiTemplate)
,setJndiEnvironment(java.util.Properties)
Constructor Summary
Constructors Constructor Description JndiAccessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Properties
getJndiEnvironment()
Return the JNDI environment to use for JNDI lookups.JndiTemplate
getJndiTemplate()
Return the JNDI template to use for JNDI lookups.void
setJndiEnvironment(Properties jndiEnvironment)
Set the JNDI environment to use for JNDI lookups.void
setJndiTemplate(JndiTemplate jndiTemplate)
Set the JNDI template to use for JNDI lookups.
Constructor Detail
JndiAccessor
public JndiAccessor()
Method Detail
setJndiTemplate
public void setJndiTemplate(JndiTemplate jndiTemplate)
Set the JNDI template to use for JNDI lookups.You can also specify JNDI environment settings via "jndiEnvironment".
getJndiTemplate
public JndiTemplate getJndiTemplate()
Return the JNDI template to use for JNDI lookups.
setJndiEnvironment
public void setJndiEnvironment(Properties jndiEnvironment)
Set the JNDI environment to use for JNDI lookups.Creates a JndiTemplate with the given environment settings.
getJndiEnvironment
public Properties getJndiEnvironment()
Return the JNDI environment to use for JNDI lookups.