Author: sergiykarpenko
Date: 2010-09-06 09:54:01 -0400 (Mon, 06 Sep 2010)
New Revision: 3063
Modified:
core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/DocumentReaderServiceImpl.java
core/trunk/exo.core.component.document/src/main/resources/conf/portal/configuration.xml
Log:
EXOJCR-749: readers map is volatile now; configuration updated
Modified:
core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/DocumentReaderServiceImpl.java
===================================================================
---
core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/DocumentReaderServiceImpl.java 2010-09-06
13:03:31 UTC (rev 3062)
+++
core/trunk/exo.core.component.document/src/main/java/org/exoplatform/services/document/impl/DocumentReaderServiceImpl.java 2010-09-06
13:54:01 UTC (rev 3063)
@@ -37,7 +37,7 @@
*/
public class DocumentReaderServiceImpl implements DocumentReaderService
{
- protected Map<String, DocumentReader> readers_;
+ protected volatile Map<String, DocumentReader> readers_;
public DocumentReaderServiceImpl(InitParams params)
{
Modified:
core/trunk/exo.core.component.document/src/main/resources/conf/portal/configuration.xml
===================================================================
---
core/trunk/exo.core.component.document/src/main/resources/conf/portal/configuration.xml 2010-09-06
13:03:31 UTC (rev 3062)
+++
core/trunk/exo.core.component.document/src/main/resources/conf/portal/configuration.xml 2010-09-06
13:54:01 UTC (rev 3063)
@@ -15,7 +15,8 @@
<component>
<key>org.exoplatform.services.document.DocumentReaderService</key>
-
<type>org.exoplatform.services.document.impl.DocumentReaderServiceImpl</type>
+
<type>org.exoplatform.services.document.impl.tika.TikaDocumentReaderServiceImpl</type>
+
<component-plugins>
<component-plugin>
<name>pdf.document.reader</name>
@@ -108,5 +109,13 @@
</component-plugin>
</component-plugins>
+
+ <init-params>
+ <value-param>
+ <name>tika-configuration</name>
+ <value>jar:/conf/portal/tika-config.xml</value>
+ </value-param>
+ </init-params>
+
</component>
</configuration>
Show replies by date