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);
}
}
}
Aggregations