svn commit: r1300923 - /cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: thorsten
Date: Thu Mar 15 11:24:53 2012
New Revision: 1300923

URL: http://svn.apache.org/viewvc?rev=1300923&view=rev
Log:
COCOON3-93
Applying patch to fix concurrency problems. The patch is still under discussion so this commit may be reverted in the future.

Reporter/Patch:
    Javier Puerto 

Gracias Javier.

Modified:
    cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java

Modified: cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java?rev=1300923&r1=1300922&r2=1300923&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java (original)
+++ cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/SpringComponentProvider.java Thu Mar 15 11:24:53 2012
@@ -42,7 +42,7 @@ public class SpringComponentProvider imp
      * 
      * @see org.apache.cocoon.sitemap.ComponentProvider#createAction(java.lang.String)
      */
-    public Action createAction(String type) {
+    public synchronized Action createAction(String type) {
         return this.actionFactory.createAction(type);
     }
 
@@ -51,7 +51,7 @@ public class SpringComponentProvider imp
      * 
      * @see org.apache.cocoon.sitemap.ComponentProvider#createComponent(java.lang.String)
      */
-    public PipelineComponent createComponent(String type) {
+    public synchronized PipelineComponent createComponent(String type) {
         return this.pipelineComponentFactory.createComponent(type);
     }
 
@@ -60,11 +60,11 @@ public class SpringComponentProvider imp
      * 
      * @see org.apache.cocoon.sitemap.ComponentProvider#createPipeline(java.lang.String)
      */
-    public Pipeline<PipelineComponent> createPipeline(String type) {
+    public synchronized Pipeline<PipelineComponent> createPipeline(String type) {
         return this.pipelineFactory.createPipeline(type);
     }
 
-    public LanguageInterpreter getLanguageInterpreter(String language) {
+    public synchronized LanguageInterpreter getLanguageInterpreter(String language) {
         return this.languageInterpreterFactory.getLanguageInterpreter(language);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.