use of org.apache.meecrowave.Meecrowave in project meecrowave by apache.
the class MeecrowaveContainer method start.
@Override
public void start() throws LifecycleException {
this.container = new Meecrowave(this.configuration);
this.container.start();
}
use of org.apache.meecrowave.Meecrowave in project meecrowave by apache.
the class OWBAutoSetup method onStartup.
@Override
public void onStartup(final Set<Class<?>> c, final ServletContext ctx) throws ServletException {
final Meecrowave.Builder builder = Meecrowave.Builder.class.cast(ctx.getAttribute("meecrowave.configuration"));
final Meecrowave instance = Meecrowave.class.cast(ctx.getAttribute("meecrowave.instance"));
if (builder.isCdiConversation()) {
final FilterRegistration.Dynamic filter = ctx.addFilter("owb-conversation", WebConversationFilter.class);
filter.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), false, "/*");
}
// eager boot to let injections work in listeners
final EagerBootListener bootListener = new EagerBootListener(instance);
bootListener.doContextInitialized(new ServletContextEvent(ctx));
ctx.addListener(bootListener);
}
Aggregations