org.springframework.jndi
Class JndiAccessor

java.lang.Object
  extended byorg.springframework.jndi.JndiAccessor
Direct Known Subclasses:
JndiLocatorSupport, JndiRmiServiceExporter

public class JndiAccessor
extends Object

Convenient superclass for JNDI accessors that provides jndiTemplate and jndiEnvironment bean properties.

Since:
1.1
Author:
Juergen Hoeller
See Also:
setJndiTemplate(org.springframework.jndi.JndiTemplate), setJndiEnvironment(java.util.Properties)

Field Summary
protected  Log logger
           
 
Constructor Summary
JndiAccessor()
           
 
Method Summary
 Properties getJndiEnvironment()
          Return the JNDI enviromment to use for the JNDI lookup.
 JndiTemplate getJndiTemplate()
          Return the JNDI template to use for the JNDI lookup.
 void setJndiEnvironment(Properties jndiEnvironment)
          Set the JNDI environment to use for the JNDI lookup.
 void setJndiTemplate(JndiTemplate jndiTemplate)
          Set the JNDI template to use for the JNDI lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

JndiAccessor

public JndiAccessor()
Method Detail

setJndiTemplate

public void setJndiTemplate(JndiTemplate jndiTemplate)
Set the JNDI template to use for the JNDI lookup. You can also specify JNDI environment settings via setJndiEnvironment.

See Also:
setJndiEnvironment(java.util.Properties)

getJndiTemplate

public JndiTemplate getJndiTemplate()
Return the JNDI template to use for the JNDI lookup.


setJndiEnvironment

public void setJndiEnvironment(Properties jndiEnvironment)
Set the JNDI environment to use for the JNDI lookup. Creates a JndiTemplate with the given environment settings.

See Also:
setJndiTemplate(org.springframework.jndi.JndiTemplate)

getJndiEnvironment

public Properties getJndiEnvironment()
Return the JNDI enviromment to use for the JNDI lookup.



Copyright (C) 2003-2004 The Spring Framework Project.