Package org.exoplatform.container

Examples of org.exoplatform.container.RootContainer


         {
            onInit(config, portalContainer);
         }
      };
      ServletContext context = config.getServletContext();
      RootContainer rootContainer = RootContainer.getInstance();
      rootContainer.addInitTask(context, task);
      rootContainer.registerPortalContainer(context);
   }
View Full Code Here


            public void execute(ServletContext context, PortalContainer portalContainer) {
                onInit(config, portalContainer);
            }
        };
        ServletContext context = config.getServletContext();
        RootContainer rootContainer = RootContainer.getInstance();
        rootContainer.addInitTask(context, task);
        rootContainer.registerPortalContainer(context);
    }
View Full Code Here

         {
            container = ExoContainerContext.getTopContainer();           
         }
         else
         {
            RootContainer rootContainer = RootContainer.getInstance();
            container = (ExoContainer)rootContainer.getComponentInstance(containerName);           
         }
      }
      if (container != null)
      {
         ExoContainerContext.setCurrentContainer(container);           
View Full Code Here

         {
            container = ExoContainerContext.getTopContainer();           
         }
         else
         {
            RootContainer rootContainer = RootContainer.getInstance();
            container = (ExoContainer)rootContainer.getComponentInstance(containerName);           
         }
      }
      if (container != null)
      {
         List<ComponentRequestLifecycle> components =
View Full Code Here

         {
            container = ExoContainerContext.getTopContainer();           
         }
         else
         {
            RootContainer rootContainer = RootContainer.getInstance();
            container = (ExoContainer)rootContainer.getComponentInstance(containerName);           
         }
      }
      if (container != null)
      {
         ExoContainerContext.setCurrentContainer(container);           
View Full Code Here

         {
            container = ExoContainerContext.getTopContainer();           
         }
         else
         {
            RootContainer rootContainer = RootContainer.getInstance();
            container = (ExoContainer)rootContainer.getComponentInstance(containerName);           
         }
      }
      if (container != null)
      {
         List<ComponentRequestLifecycle> components = container.getComponentInstancesOfType(ComponentRequestLifecycle.class);
View Full Code Here

   {
      ServletContext ctx = event.getServletContext();
      try
      {
         EnvSpecific.initThreadEnv(ctx);
         final RootContainer rootContainer = RootContainer.getInstance();
         SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
         {
            public Void run()
            {
               rootContainer.createPortalContainers();
               return null;
            }
         });        
      }
      finally
View Full Code Here

      containerName_ = pinfo.getContainerName();
   }

   public void jobToBeExecuted(JobExecutionContext context)
   {
      RootContainer rootContainer = RootContainer.getInstance();
      PortalContainer pcontainer = (PortalContainer)rootContainer.getComponentInstance(containerName_);
      PortalContainer.setInstance(pcontainer);
      List<ComponentRequestLifecycle> components =
         pcontainer.getComponentInstancesOfType(ComponentRequestLifecycle.class);
      for (ComponentRequestLifecycle component : components)
      {
View Full Code Here

   }

   public void jobWasExecuted(JobExecutionContext context, JobExecutionException exception)
   {
      RootContainer rootContainer = RootContainer.getInstance();
      PortalContainer pcontainer = (PortalContainer)rootContainer.getComponentInstance(containerName_);
      List<ComponentRequestLifecycle> components =
         pcontainer.getComponentInstancesOfType(ComponentRequestLifecycle.class);
      for (ComponentRequestLifecycle component : components)
      {
         component.endRequest(pcontainer);
View Full Code Here

                  // The requested key is the name of current container
                  ExoContainer container = ExoContainerContext.getCurrentContainerIfPresent();
                  if (container instanceof PortalContainer)
                  {
                     // The current container is a portal container
                     RootContainer rootContainer = (RootContainer)ExoContainerContext.getTopContainer();
                     value = rootContainer.isPortalContainerConfigAware() ? "_" + container.getContext().getName() : "";
                  }
               }
               else if (key.startsWith(Deserializer.PORTAL_CONTAINER_VARIABLE_PREFIX))
               {
                  // We try to get a value tied to the current portal container.
View Full Code Here

TOP

Related Classes of org.exoplatform.container.RootContainer

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.