Package org.exoplatform.container

Examples of org.exoplatform.container.StandaloneContainer


   public void stop()
   {
      System.out.println("<<<<<<<<<<<<<<<<<< JcrResourceAdapter.stop(), " + containerConfig + " >>>>>>>>>>>>>>>>>>>");
      try
      {
         StandaloneContainer sc = StandaloneContainer.getInstance();
         sc.stop();
      }
      catch (Exception e)
      {
         log.error("Standalone container stop error: " + e);
         e.printStackTrace();
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 container = StandaloneContainer.getInstance();

         authenticator = (Authenticator)container.getComponentInstanceOfType(OrganizationAuthenticatorImpl.class);
         assertNotNull(authenticator);

         registry = (ConversationRegistry)container.getComponentInstanceOfType(ConversationRegistry.class);
         assertNotNull(registry);

         orgService = (OrganizationService)container.getComponentInstanceOfType(OrganizationService.class);
         assertNotNull(orgService);

      }

   }
View Full Code Here

            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 = container.getComponentInstanceOfType(ConversationRegistry.class);
         assertNotNull(registry);
      }
   }
View Full Code Here

            String containerConf =
               ExoRepositoryStub.class.getResource(System.getProperty("jcr.test.configuration.file")).toString();
            String loginConf = ExoRepositoryStub.class.getResource("/login.conf").toString();

            StandaloneContainer.addConfigurationURL(containerConf);
            final StandaloneContainer servicesManager = StandaloneContainer.getInstance();

            if (System.getProperty("java.security.auth.login.config") == null)
               System.setProperty("java.security.auth.login.config", loginConf);

            RepositoryService repositoryService =
               (RepositoryService)servicesManager.getComponentInstanceOfType(RepositoryService.class);

            repository = repositoryService.getRepository("db1tck");
            SessionImpl session = (SessionImpl)repository.login(superuser);
            try
            {
View Full Code Here

               if (next.hasProperty("jcr:mimeType"))
               {
                  mimeType = next.getProperty("jcr:mimeType").getString();
               }
               is = next.getProperty("jcr:data").getStream();
               StandaloneContainer scontainer = StandaloneContainer.getInstance();
               DocumentReaderService service_ =
                  (DocumentReaderService)scontainer.getComponentInstanceOfType(DocumentReaderService.class);
               assertNotNull("Can not create service_ a for indexing", world);
               String found_text = service_.getContentAsText(mimeType, is);
               assertNotNull("Can not create found_text for indexing", world);
               is.close();
            }
View Full Code Here

               if (next.hasProperty("jcr:mimeType"))
               {
                  mimeType = next.getProperty("jcr:mimeType").getString();
               }
               is = next.getProperty("jcr:data").getStream();
               StandaloneContainer scontainer = StandaloneContainer.getInstance();
               DocumentReaderService service_ =
                  (DocumentReaderService)scontainer.getComponentInstanceOfType(DocumentReaderService.class);
               assertNotNull("Can not create service_ a for indexing", world);
               String found_text = service_.getContentAsText(mimeType, is);
               assertNotNull("Can not create found_text for indexing", world);
               is.close();
            }
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.