Package de.odysseus.calyxo.panels.conf

Examples of de.odysseus.calyxo.panels.conf.PanelsRootConfig


      }
    }
    URL[] inputs = (URL[])list.toArray(new URL[list.size()]);

    // parse files into configuration bean
    PanelsRootConfig root = null;
    PanelsRootConfigParser parser = new PanelsRootConfigParser(context);
    root = parser.parse(inputs);

    // create and install support instance
    PanelsSupport support = new PanelsSupport(root);
View Full Code Here


  public void test1() throws Exception {
    String xml = "/" + getClass().getName().replace('.', '/') + "1.xml";
    URL url = getClass().getResource(xml);
    ModuleContext context = new TestModuleContext("test");
    PanelsRootConfigParser parser = new PanelsRootConfigParser(context);
    PanelsRootConfig root = parser.parse(new URL[]{url});
//    System.out.println(root);
    PanelConfig foo = root.findPanelConfig("foo", null);
    assertNotNull(foo);
  }
View Full Code Here

    URL url1 = getClass().getResource(xml1);
    String xml2 = "/" + getClass().getName().replace('.', '/') + "2.xml";
    URL url2 = getClass().getResource(xml2);
    ModuleContext context = new TestModuleContext("test");
    PanelsRootConfigParser parser = new PanelsRootConfigParser(context);
    PanelsRootConfig root = parser.parse(new URL[]{url1,url2});
//    System.out.println(root);
    PanelConfig foo = root.findPanelConfig("foo", null);
    assertNotNull(foo);
    PanelConfig bar = root.findPanelConfig("bar", null);
    assertNotNull(bar);
  }
View Full Code Here

    URL url2 = getClass().getResource(xml2);
    String xml3 = "/" + getClass().getName().replace('.', '/') + "3.xml";
    URL url3 = getClass().getResource(xml3);
    ModuleContext context = new TestModuleContext("test");
    PanelsRootConfigParser parser = new PanelsRootConfigParser(context);
    PanelsRootConfig root = parser.parse(new URL[]{url1,url2,url3});
//    System.out.println(root);
    PanelConfig foo = root.findPanelConfig("foo", null);
    assertNotNull(foo);
    PanelConfig bar = root.findPanelConfig("bar", null);
    assertNotNull(bar);
    PanelConfig foo_de = root.findPanelConfig("foo", Locale.GERMAN);
    assertNotNull(foo_de);
    assertNotSame(foo, foo_de);
  }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.panels.conf.PanelsRootConfig

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.