Package org.exoplatform.container

Examples of org.exoplatform.container.ContainerBuilder


   {
      String baseDirPath = System.getProperty("basedir");
      File file = new File(baseDirPath + "/src/test/resources/xsd_1_3/test-validation.xml");
      URL url = file.toURI().toURL();
      assertNotNull(url);
      RootContainer container = new ContainerBuilder().withRoot(url).build();
      container.getComponentInstanceOfType(TestValidation.class);
   }
View Full Code Here


   {
      URL rootURL = TestPortalContainerManagedIntegration.class.getResource("root-configuration.xml");
      URL portalURL = TestPortalContainerManagedIntegration.class.getResource("portal-configuration.xml");

      //
      RootContainer root = new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).build();
      ManagementContextImpl rootManagementContext = (ManagementContextImpl)root.getManagementContext();

      //
      PortalContainer portal = PortalContainer.getInstance();
      ManagementContextImpl portalManagementContext = (ManagementContextImpl)portal.getManagementContext();
View Full Code Here

   {
      String baseDirPath = System.getProperty("basedir");
      File file = new File(baseDirPath + "/src/test/resources/xsd_1_1/test-validation.xml");
      URL url = file.toURI().toURL();
      assertNotNull(url);
      RootContainer container = new ContainerBuilder().withRoot(url).build();
      container.getComponentInstanceOfType(TestValidation.class);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.ContainerBuilder

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.