Interface JndiService

  • All Superinterfaces:
    java.io.Serializable, Service

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addListener​(java.lang.String jndiName, javax.naming.event.NamespaceChangeListener listener)
      Adds the specified listener to the given JNDI namespace.
      void bind​(java.lang.String jndiName, java.lang.Object value)
      Binds a value into JNDI by name.
      java.lang.Object locate​(java.lang.String jndiName)
      Locate an object in JNDI by name
      void unbind​(java.lang.String jndiName)
      Unbind a value from JNDI by name.
    • Method Detail

      • locate

        java.lang.Object locate​(java.lang.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​(java.lang.String jndiName,
                  java.lang.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​(java.lang.String jndiName)
        Unbind a value from JNDI by name.
        Parameters:
        jndiName - The name under which the object is bound
      • addListener

        void addListener​(java.lang.String jndiName,
                         javax.naming.event.NamespaceChangeListener listener)
        Adds the specified listener to the given JNDI namespace.
        Parameters:
        jndiName - The JNDI namespace
        listener - The listener