类 JndiPropertySource

java.lang.Object
cn.taketoday.core.env.PropertySource<JndiLocatorDelegate>
cn.taketoday.jndi.JndiPropertySource

public class JndiPropertySource extends cn.taketoday.core.env.PropertySource<JndiLocatorDelegate>
PropertySource implementation that reads properties from an underlying Framework JndiLocatorDelegate.

By default, the underlying JndiLocatorDelegate will be configured with its "resourceRef" property set to true, meaning that names looked up will automatically be prefixed with "java:comp/env/" in alignment with published JNDI naming conventions. To override this setting or to change the prefix, manually configure a JndiLocatorDelegate and provide it to one of the constructors here that accepts it. The same applies when providing custom JNDI properties. These should be specified using JndiAccessor.setJndiEnvironment(java.util.Properties) prior to construction of the JndiPropertySource.

从以下版本开始:
4.0
作者:
Chris Beams, Juergen Hoeller
另请参阅:
  • 嵌套类概要

    从类继承的嵌套类/接口 cn.taketoday.core.env.PropertySource

    cn.taketoday.core.env.PropertySource.StubPropertySource
  • 字段概要

    从类继承的字段 cn.taketoday.core.env.PropertySource

    name, source
  • 构造器概要

    构造器
    构造器
    说明
    Create a new JndiPropertySource with the given name and a JndiLocatorDelegate configured to prefix any names with "java:comp/env/".
    Create a new JndiPropertySource with the given name and the given JndiLocatorDelegate.
  • 方法概要

    修饰符和类型
    方法
    说明
    This implementation looks up and returns the value associated with the given name from the underlying JndiLocatorDelegate.

    从类继承的方法 cn.taketoday.core.env.PropertySource

    containsProperty, equals, getName, getSource, hashCode, named, toString

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

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • JndiPropertySource

      public JndiPropertySource(String name)
      Create a new JndiPropertySource with the given name and a JndiLocatorDelegate configured to prefix any names with "java:comp/env/".
    • JndiPropertySource

      public JndiPropertySource(String name, JndiLocatorDelegate jndiLocator)
      Create a new JndiPropertySource with the given name and the given JndiLocatorDelegate.
  • 方法详细资料