Package org.exoplatform.container

Examples of org.exoplatform.container.RootContainer$WeakHttpSession


    private GateInContext gateInContext = new GateInContext();

    @Override
    public void start(StartContext context) throws StartException {
        RootContainer root = RootContainer.getInstance();
        @SuppressWarnings("unchecked")
        List<ComponentAdapter<PortalContainer>> adapters = root.getComponentAdaptersOfType(PortalContainer.class);
        for (ComponentAdapter adapter : adapters) {
            gateInContext.addPortalName((String) adapter.getComponentKey());
        }
    }
View Full Code Here


        ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
        try {
            // set TCCL to this module's CL
            Thread.currentThread().setContextClassLoader(module.getClassLoader());
            final RootContainer rootContainer = RootContainer.getInstance();

            // register WSRP plugins service so that it's available when the WSRP service starts
            rootContainer.registerComponentInstance(AS7Plugins.class, WSRPPostModuleDeploymentProcessor.plugins);
        } finally {
            if (Thread.currentThread().getContextClassLoader() != oldCl) {
                Thread.currentThread().setContextClassLoader(oldCl);
            }
        }
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
               {
                  value = System.getProperty(key);
View Full Code Here

   /**
    * Initializes and creates all the portal container that have been registered previously
    */
   public void contextInitialized(ServletContextEvent event)
   {
      RootContainer rootContainer = RootContainer.getInstance();
      rootContainer.createPortalContainers();
   }
View Full Code Here

   }

   protected void init()
   {
      log.info("init() method called");
      RootContainer rootContainer = RootContainer.getInstance();
      bean = (ExternallyControlledInjectingBean) rootContainer.getComponentInstance(beanName);
      log.info("Retrieved " + beanName + ": " + bean);
      Assert.assertNotNull(beanName + " not installed", bean);
      inJboss = Environment.getInstance().getPlatform() == Environment.JBOSS_PLATFORM;
      log.info("Running inside JBoss? " + inJboss);
   }
View Full Code Here

   }

   protected void init()
   {
      log.info("init() method called");
      RootContainer rootContainer = RootContainer.getInstance();
      bean = (InjectingBean) rootContainer.getComponentInstance(beanName);
      log.info("Retrieved " + beanName + ": " + bean);
      Assert.assertNotNull(beanName + " not installed", bean);
      inJboss = Environment.getInstance().getPlatform() == Environment.JBOSS_PLATFORM;
      log.info("Running inside JBoss? " + inJboss);
   }
View Full Code Here

  /**
   * Initializes and creates all the portal container that have been registered previously
   */
  public void createPortalContainers() {
    final RootContainer rootContainer = RootContainer.getInstance();
    SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>() {
      public Void run() {
        rootContainer.createPortalContainers();
        return null;
      }
    });
  }
View Full Code Here

    private GateInContext gateInContext = new GateInContext();

    @Override
    public void start(StartContext context) throws StartException {
        RootContainer root = RootContainer.getInstance();
        @SuppressWarnings("unchecked")
        List<ComponentAdapter> adapters = root.getComponentAdaptersOfType(PortalContainer.class);
        for (ComponentAdapter adapter : adapters) {
            gateInContext.addPortalName((String) adapter.getComponentKey());
        }
    }
View Full Code Here

        try {
            // set TCCL to this module's CL
            Thread.currentThread().setContextClassLoader(module.getClassLoader());

            // Trigger startup
            RootContainer rootContainer = RootContainer.getInstance();
            rootContainer.createPortalContainers();
        } finally {
            if (Thread.currentThread().getContextClassLoader() != oldCl) {
                Thread.currentThread().setContextClassLoader(oldCl);
            }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.RootContainer$WeakHttpSession

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.