* The lazy conversation context can be configured to be enabled or disabled in web.xml. If not configured, the default behavior depends on whether an
* observer for the Initialized(ConversationScoped.class) event is present or not. If an observer is present, the lazy conversation context is disabled by
* default. Otherwise, it is enabled.
*/
private boolean initLazyConversationContext(BeanManagerImpl manager, ServletContext ctx) {
ObserverNotifier notifier = manager.getAccessibleLenientObserverNotifier();
boolean noObservers = notifier.resolveObserverMethods(notifier.buildEventResolvable(HttpServletRequest.class, InitializedLiteral.CONVERSATION)).isEmpty()
&& notifier.resolveObserverMethods(notifier.buildEventResolvable(HttpServletRequest.class, DestroyedLiteral.CONVERSATION)).isEmpty();
return getBooleanInitParameter(ctx, CONVERSATION_CONTEXT_LAZY_PARAM, noObservers);
}