Package org.apache.wicket.request.cycle

Examples of org.apache.wicket.request.cycle.RequestCycleListenerCollection


    {
      throw new IllegalStateException("Cdi already configured for this application");
    }
    application.setMetaData(CDI_CONFIGURATION_KEY, this);

    RequestCycleListenerCollection listeners = new RequestCycleListenerCollection();
    application.getRequestCycleListeners().add(listeners);

    // enable conversation propagation
    if (getPropagation() != ConversationPropagation.NONE)
    {
      listeners.add(new ConversationPropagator(application, getPropagation()));
      application.getComponentPreOnBeforeRenderListeners().add(
          new AutoConversationManager(getPropagation()));
      application.getComponentPreOnBeforeRenderListeners().add(
          new ConversationExpiryChecker());
    }

    // enable detach event
    listeners.add(new DetachEventEmitter());

    NonContextual.of(application.getClass()).postConstruct(application);

    // enable injection of various framework components
    application.getSessionListeners().add(new SessionInjector());
View Full Code Here


    }

    CdiContainer container = new CdiContainer(beanManager, nonContextualManager);
    container.bind(application);

    RequestCycleListenerCollection listeners = new RequestCycleListenerCollection();
    application.getRequestCycleListeners().add(listeners);

    // enable conversation propagation
    if (getPropagation() != ConversationPropagation.NONE)
    {
      listeners.add(new ConversationPropagator(application, container, getPropagation()));
      application.getComponentPreOnBeforeRenderListeners().add(
        new ConversationExpiryChecker(container));
      SeamConversationContextFactory.setDisableNoopInstance(true);
    }

    // enable detach event
    listeners.add(new DetachEventEmitter(container));

    // inject application instance
    if (isInjectApplication())
    {
      container.getNonContextualManager().postConstruct(application);
View Full Code Here

    }

    CdiContainer container = new CdiContainer(beanManager, nonContextualManager);
    container.bind(application);

    RequestCycleListenerCollection listeners = new RequestCycleListenerCollection();
    application.getRequestCycleListeners().add(listeners);

    // enable conversation propagation
    if (getPropagation() != ConversationPropagation.NONE)
    {
      listeners.add(new ConversationPropagator(application, container, getPropagation(),
        autoConversationManagement));
      application.getComponentPreOnBeforeRenderListeners().add(
        new ConversationExpiryChecker(container));
      SeamConversationContextFactory.setDisableNoopInstance(true);
    }

    // enable detach event
    listeners.add(new DetachEventEmitter(container));


    // inject application instance
    if (isInjectApplication())
    {
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.cycle.RequestCycleListenerCollection

Copyright © 2018 www.massapicom. 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.