Package org.exoplatform.container

Examples of org.exoplatform.container.ContainerBuilder


  
   public void testInitParams() throws Exception
   {
      URL url = getClass().getResource("../../../../xsd_1_1/test-validation.xml");
      assertNotNull(url);
      RootContainer container = new ContainerBuilder().withRoot(url).build();
      container.getComponentInstanceOfType(TestValidation.class);
   }
View Full Code Here


  
   public void testInitParams() throws Exception
   {
      URL url = getClass().getResource("../../../../xsd_1_0/test-validation.xml");
      assertNotNull(url);
      RootContainer container = new ContainerBuilder().withRoot(url).build();
      container.getComponentInstanceOfType(TestValidation.class);
   }
View Full Code Here

  
   public void testInitParams() throws Exception
   {
      URL url = getClass().getResource("../../../../xsd_1_2/test-validation.xml");
      assertNotNull(url);
      RootContainer container = new ContainerBuilder().withRoot(url).build();
      container.getComponentInstanceOfType(TestValidation.class);
   }
View Full Code Here

  
   public void testInitParams() throws Exception
   {
      URL url = getClass().getResource("../../../../xsd_1_3/test-validation.xml");
      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

   public static RootContainer createRootContainer(Class<?> callerClass, String relativeConfigurationFile)
   {
      URL url = callerClass.getResource(relativeConfigurationFile);
      assertNotNull(url);
      return new ContainerBuilder().withRoot(url).build();
   }
View Full Code Here

   public static RootContainer createRootContainer(Class<?> callerClass, String relativeConfigurationFile,
      String... profiles)
   {
      URL url = callerClass.getResource(relativeConfigurationFile);
      assertNotNull(url);
      return new ContainerBuilder().withRoot(url).profiledBy(profiles).build();
   }
View Full Code Here

      URL rootURL = getClass().getResource("test-exo-container.xml");
      URL portalURL = getClass().getResource("test-exo-container2.xml");
      assertNotNull(rootURL);
      assertNotNull(portalURL);
      //
      new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).build();
      RootContainer root = RootContainer.getInstance();
      testIntegration(root);
      ComponentAdapter<H> adapterH = root.getComponentAdapterOfType(H.class);
      assertNull(adapterH);
      PortalContainer portal = PortalContainer.getInstance();
View Full Code Here

      URL rootURL = getClass().getResource("test-exo-container.xml");
      URL portalURL = getClass().getResource("test-exo-container2.xml");
      assertNotNull(rootURL);
      assertNotNull(portalURL);
      //
      new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).profiledBy("class").build();
      RootContainer root = RootContainer.getInstance();
      testIntegration(root);
   }
View Full Code Here

      URL rootURL = getClass().getResource("test-exo-container.xml");
      URL portalURL = getClass().getResource("test-exo-container2.xml");
      assertNotNull(rootURL);
      assertNotNull(portalURL);
      //
      new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).profiledBy("file").build();
      RootContainer root = RootContainer.getInstance();
      testIntegration(root);
   }
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.