Interface JndiService

  • All Superinterfaces:
    Serializable, Service

    public interface JndiService
    extends Service
    Service providing simplified access to JNDI related features needed by Hibernate.
    • Method Detail

      • locate

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

        void bind​(String jndiName,
                  Object value)
        Binds a value into JNDI by name.
        Parameters:
        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.
        Parameters:
        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.
        Parameters:
        jndiName - The JNDI namespace
        listener - The listener