Class JndiServiceImpl

    • Constructor Detail

      • JndiServiceImpl

        public JndiServiceImpl​(Map configurationValues)
        Constructs a JndiServiceImpl
        Parameters:
        configurationValues - Map of configuration settings, some of which apply to JNDI support.
    • Method Detail

      • extractJndiProperties

        public static Properties extractJndiProperties​(Map configurationValues)
        Given a hodgepodge of properties, extract out the ones relevant for JNDI interaction.
        Parameters:
        configurationValues - The map of config values
        Returns:
        The extracted JNDI specific properties.
      • locate

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

        public void bind​(String jndiName,
                         Object value)
        Description copied from interface: JndiService
        Binds a value into JNDI by name.
        Specified by:
        bind in interface JndiService
        Parameters:
        jndiName - The name under which to bind the object
        value - The value to bind
      • unbind

        public void unbind​(String jndiName)
        Description copied from interface: JndiService
        Unbind a value from JNDI by name.
        Specified by:
        unbind in interface JndiService
        Parameters:
        jndiName - The name under which the object is bound
      • addListener

        public void addListener​(String jndiName,
                                NamespaceChangeListener listener)
        Description copied from interface: JndiService
        Adds the specified listener to the given JNDI namespace.
        Specified by:
        addListener in interface JndiService
        Parameters:
        jndiName - The JNDI namespace
        listener - The listener