Examples of CdiConfiguration


Examples of net.ftlines.wicket.cdi.CdiConfiguration

        } catch (NamingException e) {
            throw new IllegalStateException("Unable to obtain CDI BeanManager", e);
        }

        // Configure CDI, disabling Conversations as we aren't using them
        new CdiConfiguration(bm).setPropagation(NONE).configure(this);

        // Mount the InsertContact page at /insert
        mountPage("/insert", InsertContact.class);
    }
View Full Code Here

Examples of net.ftlines.wicket.cdi.CdiConfiguration

        } catch (NamingException e) {
            throw new IllegalStateException("Unable to obtain CDI BeanManager", e);
        }

        // Configure CDI, disabling Conversations as we aren't using them
        new CdiConfiguration(bm).setPropagation(NONE).configure(this);

        // Mount the InsertContact page at /insert
        mountPage("/insert", InsertContact.class);
    }
View Full Code Here

Examples of org.apache.wicket.cdi.CdiConfiguration

  @Override
  public Url urlFor(IRequestHandler handler)
  {
    Url ret = super.urlFor(handler);
    final CdiConfiguration configuration = CdiConfiguration.get(getApplication());
    Page page = ConversationPropagator.getPage(handler);
    if (configuration.getPropagation().propagatesVia(handler, page))
    {
      if (page != null)
      {
        String cid = ConversationPropagator.getConversationIdFromPage(page);
        ret.addQueryParameter(ConversationPropagator.CID, cid);
View Full Code Here

Examples of org.apache.wicket.cdi.CdiConfiguration

  @Override
  protected void init()
  {
    super.init();
    new CdiConfiguration().configure(this);
  }
View Full Code Here

Examples of org.apache.wicket.cdi.CdiConfiguration

  protected void init()
  {
    super.init();

    // configure wicket/cdi
    new CdiConfiguration().configure(this);
  }
View Full Code Here

Examples of org.apache.wicket.cdi.CdiConfiguration

  protected void init()
  {
    super.init();

    // configure wicket/cdi
    new CdiConfiguration().configure(this);

    mountPage("injection", InjectionPage.class);
    mountPage("conversation", ConversationPage1.class);
    mountPage("autoConversation", AutoConversationPage1.class);
  }
View Full Code Here

Examples of org.apache.wicket.cdi.CdiConfiguration

    // lookup bean manager from Weld's servlet listener
    BeanManager manager = (BeanManager)getServletContext().getAttribute(
      Listener.BEAN_MANAGER_ATTRIBUTE_NAME);

    // configure wicket/cdi
    new CdiConfiguration(manager).configure(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.