Examples of toWebXml()


Examples of juzu.impl.bridge.DescriptorBuilder.toWebXml()

  public static WebArchive deployment() {
    DescriptorBuilder desc = DescriptorBuilder.DEFAULT.
        injector(InjectorProvider.SPRING).
        embedPortletContainer().
        listener("org.springframework.web.context.ContextLoaderListener");
    String webXml = desc.toWebXml();
    WebArchive war = ShrinkWrap.create(WebArchive.class);
    war.setWebXML(new StringAsset(webXml));
    war.addAsWebInfResource(new File("src/test/resources/applicationContext.xml"));
    war.addAsWebInfResource(new File("src/main/webapp/WEB-INF/portlet.xml"));
    war.addPackages(true, "examples.tutorial");
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.