Class JNDIServiceEnterpriseImpl

  • All Implemented Interfaces:
    org.apache.webbeans.spi.JNDIService

    public final class JNDIServiceEnterpriseImpl
    extends Object
    implements org.apache.webbeans.spi.JNDIService
    SPI Implementation of the JNDIService. This version performs JNDI handling in J2EE environments where the java:comp and java:app context can be written
    See Also:
    DefaultJndiService
    • Constructor Detail

      • JNDIServiceEnterpriseImpl

        public JNDIServiceEnterpriseImpl()
    • Method Detail

      • bind

        public void bind​(String name,
                         Object object)
                  throws org.apache.webbeans.exception.WebBeansException
        Specified by:
        bind in interface org.apache.webbeans.spi.JNDIService
        Throws:
        org.apache.webbeans.exception.WebBeansException
      • unbind

        public void unbind​(String name)
                    throws org.apache.webbeans.exception.WebBeansException
        Specified by:
        unbind in interface org.apache.webbeans.spi.JNDIService
        Throws:
        org.apache.webbeans.exception.WebBeansException
      • getObject

        public <T> T getObject​(String name,
                               Class<? extends T> expectedClass)
                        throws org.apache.webbeans.exception.WebBeansException
        Throws:
        org.apache.webbeans.exception.WebBeansException
      • lookup

        public <T> T lookup​(String name,
                            Class<? extends T> expectedClass)
        Specified by:
        lookup in interface org.apache.webbeans.spi.JNDIService