接口 JndiService

  • 所有超级接口:
    Serializable, Service
    所有已知实现类:
    JndiServiceImpl

    public interface JndiService
    extends Service
    Service providing simplified access to JNDI related features needed by Hibernate.
    作者:
    Steve Ebersole
    • 方法详细资料

      • locate

        Object locate​(String jndiName)
        Locate an object in JNDI by name
        参数:
        jndiName - The JNDI name of the object to locate
        返回:
        The object found (may be null).
      • bind

        void bind​(String jndiName,
                  Object value)
        Binds a value into JNDI by name.
        参数:
        jndiName - The name under which to bind the object
        value - The value to bind
      • unbind

        void unbind​(String jndiName)
        Unbind a value from JNDI by name.
        参数:
        jndiName - The name under which the object is bound
      • addListener

        void addListener​(String jndiName,
                         NamespaceChangeListener listener)
        Adds the specified listener to the given JNDI namespace.
        参数:
        jndiName - The JNDI namespace
        listener - The listener