org.springframework.jndi

## 类 JndiAccessor

- java.lang.Object
- - org.springframework.jndi.JndiAccessor

- 直接已知子类:
    JndiLocatorSupport

      public class JndiAccessor
      extends Object

  Convenient superclass for JNDI accessors, providing "jndiTemplate" and "jndiEnvironment" bean properties.
  从以下版本开始:
    1.1
  作者:
    Juergen Hoeller
  另请参阅:
    `setJndiTemplate(org.springframework.jndi.JndiTemplate)`, `setJndiEnvironment(java.util.Properties)`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Log` | `logger` Logger, available to subclasses.

  - ### 构造器概要

    构造器
    构造器和说明
    `JndiAccessor()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### logger

          protected final Log logger

      Logger, available to subclasses.

  - ### 构造器详细资料

    - #### JndiAccessor

          public JndiAccessor()

  - ### 方法详细资料

    - #### 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".

      另请参阅:
        `setJndiEnvironment(java.util.Properties)`

    - #### 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.

      另请参阅:
        `setJndiTemplate(org.springframework.jndi.JndiTemplate)`

    - #### getJndiEnvironment

          @Nullable
          public Properties getJndiEnvironment()

      Return the JNDI environment to use for JNDI lookups.