Package org.exoplatform.container

Examples of org.exoplatform.container.StandaloneContainer


            TestOrganizationAuthenticator.class.getResource("/conf/standalone/test-configuration.xml");
         assertNotNull(containerConfURL);

         String containerConf = containerConfURL.toString();
         StandaloneContainer.addConfigurationURL(containerConf);
         StandaloneContainer container = StandaloneContainer.getInstance();

         organizationService =
            (BaseOrganizationService)container
               .getComponentInstance(org.exoplatform.services.organization.OrganizationService.class);
         assertNotNull(organizationService);

         uHandler = organizationService.getUserHandler();

         registry = (ConversationRegistry)container.getComponentInstanceOfType(ConversationRegistry.class);
         assertNotNull(registry);
      }
   }
View Full Code Here


      {
         String containerConf =
            TestRolesExtractor.class.getResource("/conf/standalone/test-configuration.xml").toString();
         StandaloneContainer.addConfigurationURL(containerConf);

         StandaloneContainer manager = StandaloneContainer.getInstance();

         rolesExtractor = (DefaultRolesExtractorImpl)manager.getComponentInstanceOfType(RolesExtractor.class);
         assertNotNull(rolesExtractor);
      }
   }
View Full Code Here

         String loginConf = TestLoginModule.class.getResource("/login.conf").toString();
         StandaloneContainer.addConfigurationURL(containerConf);
         if (System.getProperty("java.security.auth.login.config") == null)
            System.setProperty("java.security.auth.login.config", loginConf);

         StandaloneContainer manager = StandaloneContainer.getInstance();

         authenticator = (DummyAuthenticatorImpl)manager.getComponentInstanceOfType(DummyAuthenticatorImpl.class);
         registry = (ConversationRegistry)manager.getComponentInstanceOfType(ConversationRegistry.class);
         assertNotNull(registry);

         listenerService = (ListenerService)manager.getComponentInstanceOfType(ListenerService.class);

      }

      registry.clear();
View Full Code Here

         String loginConf = loginConfURL.toString();
         StandaloneContainer.addConfigurationURL(containerConf);
         if (System.getProperty("java.security.auth.login.config") == null)
            System.setProperty("java.security.auth.login.config", loginConf);

         StandaloneContainer manager = StandaloneContainer.getInstance();

         authenticator = (DummyAuthenticatorImpl)manager.getComponentInstanceOfType(DummyAuthenticatorImpl.class);
         assertNotNull(authenticator);
         conversationRegistry = (ConversationRegistry)manager.getComponentInstanceOfType(ConversationRegistry.class);
         assertNotNull(conversationRegistry);
         identityRegistry = (IdentityRegistry)manager.getComponentInstanceOfType(IdentityRegistry.class);
         assertNotNull(identityRegistry);

      }
      identityRegistry.clear();
      conversationRegistry.clear();
View Full Code Here

   protected void validateXML(InputStream input) throws Exception
   {
      StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
         "conf/standalone/test-configuration.xml").getPath());
      StandaloneContainer container = StandaloneContainer.getInstance();

      XMLResolvingService resolvingService =
         (XMLResolvingService)container.getComponentInstanceOfType(XMLResolvingService.class);
      assertNotNull("XMLResolvingService", resolvingService);

      XMLReader xmlReader = XMLReaderFactory.createXMLReader();
      xmlReader.setEntityResolver(resolvingService.getEntityResolver());
View Full Code Here

   {
      if (service == null)
      {
         StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
            "conf/standalone/test-configuration.xml").getPath());
         StandaloneContainer container = StandaloneContainer.getInstance();
         service = (XMLResolvingService)container.getComponentInstanceOfType(XMLResolvingService.class);
      }
   }
View Full Code Here

   public void setUp() throws Exception
   {
      StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
         "conf/standalone/test-configuration.xml").getPath());
      StandaloneContainer container = StandaloneContainer.getInstance();
      HTMLTransformerService htmlService =
         (HTMLTransformerService)container.getComponentInstanceOfType(HTMLTransformerService.class);
      assertNotNull("htmlService", htmlService);
      htmlTransformer = htmlService.getTransformer();

   }
View Full Code Here

   public void setUp() throws Exception
   {
      StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
         "conf/standalone/test-configuration.xml").getPath());
      StandaloneContainer container = StandaloneContainer.getInstance();
      traxTemplatesService = (TRAXTemplatesService)container.getComponentInstanceOfType(TRAXTemplatesService.class);
      assertNotNull("traxTemplatesService", traxTemplatesService);
   }
View Full Code Here

   public void setUp() throws Exception
   {
      StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
         "conf/standalone/test-configuration.xml").getPath());
      StandaloneContainer container = StandaloneContainer.getInstance();
      traxService = (TRAXTransformerService)container.getComponentInstanceOfType(TRAXTransformerService.class);
      assertNotNull("traxService", traxService);
   }
View Full Code Here

   {

      // html transformer
      StandaloneContainer.setConfigurationPath(Thread.currentThread().getContextClassLoader().getResource(
         "conf/standalone/test-configuration.xml").getPath());
      StandaloneContainer container = StandaloneContainer.getInstance();

      TRAXTransformerService traxService =
         (TRAXTransformerService)container.getComponentInstanceOfType(TRAXTransformerService.class);
      assertNotNull("traxService", traxService);
      HTMLTransformerService htmlService =
         (HTMLTransformerService)container.getComponentInstanceOfType(HTMLTransformerService.class);
      assertNotNull("htmlService", htmlService);

      htmlTransformer = htmlService.getTransformer();
      assertNotNull("get html transformer", htmlTransformer);
View Full Code Here

TOP

Related Classes of org.exoplatform.container.StandaloneContainer

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.