Author: thomas.heute(a)jboss.com
Date: 2010-05-05 14:08:35 -0400 (Wed, 05 May 2010)
New Revision: 2988
Modified:
portal/branches/EPP_5_0_Branch/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
Log:
JBEPP-337: Avoid duplicate instantiation of the component
org.exoplatform.groovyscript.text.TemplateService under rush condition
Using Startable as workaround
Modified:
portal/branches/EPP_5_0_Branch/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
===================================================================
---
portal/branches/EPP_5_0_Branch/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-05-05
18:01:23 UTC (rev 2987)
+++
portal/branches/EPP_5_0_Branch/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-05-05
18:08:35 UTC (rev 2988)
@@ -41,6 +41,7 @@
import org.exoplatform.services.cache.CacheService;
import org.exoplatform.services.cache.ExoCache;
import org.gatein.common.io.IOTools;
+import org.picocontainer.Startable;
import java.io.InputStream;
import java.util.ArrayList;
@@ -53,7 +54,7 @@
@Property(key = "type", value = "template")})
@ManagedDescription("Template management service")
@RESTEndpoint(path = "templateservice")
-public class TemplateService
+public class TemplateService implements Startable
{
private GroovyTemplateEngine engine_;
@@ -230,4 +231,12 @@
return null;
}
}
+
+ public void start()
+ {
+ }
+
+ public void stop()
+ {
+ }
}
Show replies by date