Search in sources :

Example 1 with WebBeansELResolver

use of org.apache.webbeans.el22.WebBeansELResolver in project tomee by apache.

the class CustomELAdapter method getOwbELResolver.

@Override
public ELResolver getOwbELResolver() {
    WebBeansContext old = null;
    boolean exit = false;
    try {
        // just some safety around this but should be very very rare
        WebBeansContext.currentInstance();
    } catch (final IllegalStateException ise) {
        old = ThreadSingletonServiceImpl.enter(appContext.getWebBeansContext());
        exit = true;
    }
    try {
        return new WebBeansELResolver();
    } finally {
        if (exit) {
            ThreadSingletonServiceImpl.exit(old);
        }
    }
}
Also used : WebBeansContext(org.apache.webbeans.config.WebBeansContext) WebBeansELResolver(org.apache.webbeans.el22.WebBeansELResolver)

Aggregations

WebBeansContext (org.apache.webbeans.config.WebBeansContext)1 WebBeansELResolver (org.apache.webbeans.el22.WebBeansELResolver)1