Examples of ELContextStore


Examples of org.apache.webbeans.el.ELContextStore

        {
            context.destroy();
        }
       
        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }
       
        //Clear thread locals
        requestContext.set(null);
        requestContext.remove();
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

    @SuppressWarnings({"unchecked"})
    public Object getValue(ELContext context, Object obj, Object property) throws NullPointerException, PropertyNotFoundException, ELException
    {
        //Bean instance
        Object contextualInstance = null;
        ELContextStore elContextStore = null;
        if (obj == null)
        {
            //Name of the bean
            String name = (String) property;
            //Local store, create if not exist
            elContextStore = ELContextStore.getInstance(true);

            contextualInstance = elContextStore.findBeanByName(name);

            if(contextualInstance != null)
            {
                context.setPropertyResolved(true);
               
                return contextualInstance;
            }

            //Manager instance
            BeanManagerImpl manager = elContextStore.getBeanManager();

            //Get beans
            Set<Bean<?>> beans = manager.getBeans(name);

            //Found?
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

        ContextFactory.destroySingletonContext(this.servletContext);

        ContextFactory.cleanUpContextFactory();

        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }
    }
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

                    }
                }
            }

            // clean up the EL caches after each request
            final ELContextStore elStore = ELContextStore.getInstance(false);
            if (elStore != null) {
                elStore.destroyELContextStore();
            }

            webBeansContext.getContextsService().endContext(RequestScoped.class, event);
            if (webBeansContext instanceof WebappWebBeansContext) { // end after child
                ((WebappWebBeansContext) webBeansContext).getParent().getContextsService().endContext(RequestScoped.class, event);
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

        if (context != null) {
            context.destroy();
        }

        // clean up the EL caches after each request
        final ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null) {
            elStore.destroyELContextStore();
        }

        //Clear thread locals
        removeThreadLocals();
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

                }
            }
        }
       
        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }

        this.lifeCycle.getContextService().endContext(RequestScoped.class, event);

        this.cleanupRequestThreadLocals();
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

        //Comment out for OWB-502
        //ContextFactory.cleanUpContextFactory();

        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }
    }
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

        {
            context.destroy();
        }
       
        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }
       
        //Clear thread locals
        requestContext.set(null);
        requestContext.remove();
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

        webBeansContext.getContextFactory().destroyConversationContext();
        webBeansContext.getContextFactory().destroyApplicationContext(null);
        webBeansContext.getContextFactory().destroySingletonContext(null);

        // clean up the EL caches after each request
        ELContextStore elStore = ELContextStore.getInstance(false);
        if (elStore != null)
        {
            elStore.destroyELContextStore();
        }
    }
View Full Code Here

Examples of org.apache.webbeans.el.ELContextStore

           
        }
        finally
        {
            //Destroy dependent store
            ELContextStore store = ELContextStore.getInstance(false);
            if(store != null)
            {
                store.destroyDependents();
            }
        }
       
        return value;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.