Interface JNDIService


  • public interface JNDIService
    SPI for setting and retrieving objects from the JNDI. Use this interface for all objects which should be stored and retreived from the JNDI at runtime. This may be implemented via a static map for environments where no JNDI is available.
    • Field Detail

      • JMS_CONNECTION_FACTORY_JNDI_KEY

        static final String JMS_CONNECTION_FACTORY_JNDI_KEY
        JMS Connection Factory JNDI Name
        See Also:
        Constant Field Values
      • JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE

        static final String JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE
        Default value
        See Also:
        Constant Field Values
    • Method Detail

      • bind

        void bind​(String name,
                  Object object)
        Bind the object with the given name to the JNDI environment
        Parameters:
        name -
        object -
        Throws:
        WebBeansException - on any internal error
      • unbind

        void unbind​(String name)
        Unbind and free the object with the given name from the JNDI environment
        Parameters:
        name -
        Throws:
        WebBeansException - on any internal error
      • lookup

        <T> T lookup​(String name,
                     Class<? extends T> expectedClass)
        Get the object bound to the given name from the JNDI context.
        Parameters:
        name -
        expectedClass -
        Returns:
        the bound object or null if nothing bound.
        Throws:
        WebBeansException - on any internal error