Author: julien_viet
Date: 2009-12-18 10:27:33 -0500 (Fri, 18 Dec 2009)
New Revision: 1072
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java
Log:
actually mis used the portal container init task
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java 2009-12-18
15:07:21 UTC (rev 1071)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java 2009-12-18
15:27:33 UTC (rev 1072)
@@ -21,8 +21,6 @@
import org.exoplatform.application.gadget.impl.GadgetRegistryServiceImpl;
import org.exoplatform.commons.chromattic.ChromatticLifeCycle;
import org.exoplatform.commons.chromattic.SessionContext;
-import org.exoplatform.container.PortalContainer;
-import org.exoplatform.container.RootContainer;
import org.gatein.common.logging.Logger;
import org.gatein.common.logging.LoggerFactory;
import org.gatein.common.xml.XMLTools;
@@ -75,14 +73,7 @@
final URL url = scontext.getResource("/WEB-INF/gadget.xml");
if (url != null)
{
- final RootContainer.PortalContainerPostInitTask task = new
RootContainer.PortalContainerPostInitTask()
- {
- public void execute(ServletContext context, PortalContainer
portalContainer)
- {
- handle(context, url);
- }
- };
- PortalContainer.addInitTask(scontext, task);
+ handle(scontext, url);
}
}
catch (MalformedURLException e)