Package org.exoplatform.container.RootContainer

Examples of org.exoplatform.container.RootContainer.PortalContainerPostInitTask


     * In this method, we: 1) first get the portal instance name for which the session is created. 2) Put the portal instance in
     * the Portal ThreadLocal 3) Broadcast the CONTEXT_INITIALIZED event 4) Flush the {@link ThreadLocal} for the
     * PortalContainer
     */
    public void contextInitialized(final ServletContextEvent event) {
        final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
            public void execute(ServletContext scontext, PortalContainer portalContainer) {
                try {
                    broadcast(portalContainer, CONTEXT_INITIALIZED, event);
                } catch (Exception ex) {
                    log.error("Error on contextInitialized", ex);
View Full Code Here


     * In this method, we: 1) first get the portal instance name for which the session is created. 2) Put the portal instance in
     * the Portal ThreadLocal 3) Broadcast the CONTEXT_INITIALIZED event 4) Flush the {@link ThreadLocal} for the
     * PortalContainer
     */
    public void contextInitialized(final ServletContextEvent event) {
        final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
            public void execute(ServletContext scontext, PortalContainer portalContainer) {
                try {
                    broadcast(portalContainer, CONTEXT_INITIALIZED, event);
                } catch (Exception ex) {
                    log.error("Error on contextInitialized", ex);
View Full Code Here

                InputStream is = null;
                try {
                    scontext = event.getWebApp().getServletContext();
                    is = scontext.getResourceAsStream(GATEIN_CONFIG_RESOURCE);
                    if (is != null) {
                        final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
                            public void execute(ServletContext scontext, PortalContainer portalContainer) {
                                register(scontext, portalContainer);
                                skinService.registerContext(event.getWebApp());
                            }
                        };
View Full Code Here

                return;
            }

            Safe.close(is);

            final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {

                public void execute(ServletContext scontext, PortalContainer portalContainer) {
                    register(scontext, portalContainer);
                    javascriptService.registerContext(webApp);
                }
View Full Code Here

    @Override
    protected void add(final WebApp webApp, final URL url) {
        ServletContext scontext = null;
        try {
            scontext = webApp.getServletContext();
            final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
                public void execute(ServletContext scontext, PortalContainer portalContainer) {
                    try {
                        SkinConfigParser.processConfigResource(DocumentSource.create(url), skinService, scontext);
                    } catch (Exception ex) {
                        log.error("An error occurs while registering '" + GATEIN_CONFIG_RESOURCE + "' from the context '"
View Full Code Here

        this.portalContainerName = portalContainerName;
    }

    protected void add(final WebApp webApp, URL url) {
        try {
                final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
                    public void execute(ServletContext scontext, PortalContainer portalContainer) {
                        register(scontext, portalContainer);
                        javascriptService.registerContext(webApp);
                    }
                };
View Full Code Here

      PortalContainer.addInitTask(event.getServletContext(), task);
   }

   public void contextDestroyed(ServletContextEvent event)
   {
      final PortalContainerPostInitTask task = new PortalContainerPostInitTask()
      {

         public void execute(ServletContext context, PortalContainer portalContainer)
         {
            portalContainer.unregisterContext(context);
View Full Code Here

            return;
         }
        
         Safe.close(is);

         final PortalContainerPostInitTask task = new PortalContainerPostInitTask()
         {

            public void execute(ServletContext scontext, PortalContainer portalContainer)
            {
               register(scontext, portalContainer);
View Full Code Here

            {
               scontext = event.getWebApp().getServletContext();
               is = scontext.getResourceAsStream(GATEIN_CONFIG_RESOURCE);
               if (is != null)
               {
                  final PortalContainerPostInitTask task = new PortalContainerPostInitTask()
                  {

                     public void execute(ServletContext scontext, PortalContainer portalContainer)
                     {
                        register(scontext, portalContainer);
View Full Code Here

TOP

Related Classes of org.exoplatform.container.RootContainer.PortalContainerPostInitTask

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.