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:
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
      Logger, available to subclasses.
  • Constructor Details

    • JndiAccessor

      public JndiAccessor()
  • Method Details

    • setJndiTemplate

      public void setJndiTemplate(@Nullable JndiTemplate jndiTemplate)
      Set the JNDI template to use for JNDI lookups.

      You can also specify JNDI environment settings via "jndiEnvironment".

      See Also:
    • getJndiTemplate

      public JndiTemplate getJndiTemplate()
      Return the JNDI template to use for JNDI lookups.
    • setJndiEnvironment

      public void setJndiEnvironment(@Nullable Properties jndiEnvironment)
      Set the JNDI environment to use for JNDI lookups.

      Creates a JndiTemplate with the given environment settings.

      See Also:
    • getJndiEnvironment

      @Nullable public Properties getJndiEnvironment()
      Return the JNDI environment to use for JNDI lookups.