Package org.apache.webbeans.spi

Examples of org.apache.webbeans.spi.JNDIService


            {               
                //Load Extensions
                webBeansContext.getExtensionLoader().loadExtensionServices();

                // Bind manager
                JNDIService service = webBeansContext.getService(JNDIService.class);
               
                //Default jndi is just a map
                if(service instanceof DefaultJndiService)
                {
                    service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, new InjectableBeanManager(webBeansContext.getBeanManagerImpl()));
                }
                //Assume, actual JNDI implementation
                else
                {
                    service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, webBeansContext.getBeanManagerImpl().getReference());
                }

                // Register Manager built-in component
                webBeansContext.getBeanManagerImpl().addInternalBean(webBeansContext.getWebBeansUtil().getManagerBean());
View Full Code Here


        return false;
    }
   
    private static JNDIService getJNDIService()
    {
       JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
       
        if(jndiService == null)
        {
            throw new WebBeansCreationException("JNDI service is not available");           
        }
View Full Code Here

               
                // Register InjectionPoint bean
                ManagerImpl.getManager().addBean(WebBeansUtil.getInjectionPointComponent());

                // Bind manager
                JNDIService service = ServiceLoader.getService(JNDIService.class);
                service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, ManagerImpl.getManager());

                deployFromXML(scanner);
                checkStereoTypes(scanner);
                configureInterceptors(scanner);
                configureDecorators(scanner);
View Full Code Here

            {               
                //Load Extensions
                ExtensionLoader.getInstance().loadExtensionServices();

                // Bind manager
                JNDIService service = ServiceLoader.getService(JNDIService.class);
               
                //Default jndi is just a map
                if(service instanceof DefaultJndiService)
                {
                    service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, new InjectableBeanManager());
                }
                //Assume, actual JNDI implementation
                else
                {
                    service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, BeanManagerImpl.getManager().getReference());  
                }

                // Register Manager built-in component
                BeanManagerImpl.getManager().addBean(WebBeansUtil.getManagerBean());
View Full Code Here

        return false;
    }
   
    private static JNDIService getJNDIService()
    {
       JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
       
        if(jndiService == null)
        {
            throw new WebBeansCreationException("JNDI service is not available");           
        }
View Full Code Here

        return false;
    }
   
    private static JNDIService getJNDIService()
    {
       JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
       
        if(jndiService == null)
        {
            throw new WebBeansCreationException("JNDI service is not available");           
        }
View Full Code Here

            {               
                //Load Extensions
                ExtensionLoader.getInstance().loadExtensionServices();

                // Bind manager
                JNDIService service = ServiceLoader.getService(JNDIService.class);
                service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, BeanManagerImpl.getManager());

                // Register Manager built-in component
                BeanManagerImpl.getManager().addBean(WebBeansUtil.getManagerBean());

                //Fire Event
View Full Code Here

           

            //Fire shut down
            this.beanManager.fireEvent(new BeforeShutdownImpl(), new Annotation[0]);
           
            JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
           
            jndiService.unbind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME);
                   
            ContextFactory.destroySingletonContext(null);

            // finally free all plugin resources
            PluginLoader.getInstance().shutDown();
View Full Code Here

            {               
                //Load Extensions
                ExtensionLoader.getInstance().loadExtensionServices();

                // Bind manager
                JNDIService service = ServiceLoader.getService(JNDIService.class);
                service.bind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME, BeanManagerImpl.getManager());

                // Register Manager built-in component
                BeanManagerImpl.getManager().addBean(WebBeansUtil.getManagerBean());

                //Fire Event
View Full Code Here

        return false;
    }
   
    private static JNDIService getJNDIService()
    {
       JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
       
        if(jndiService == null)
        {
            throw new WebBeansCreationException("JNDI service is not available");           
        }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.spi.JNDIService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.