<?xml version="1.0" encoding="ISO-8859-1"?>

<configuration
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
   xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">

  
  <component>
    <type>org.exoplatform.ecm.REST.viewer.PDFViewerRESTService</type>
  </component>  
  
  <external-component-plugins>
    <target-component>org.exoplatform.services.cache.CacheService</target-component>
    <component-plugin>
      <name>addExoCacheConfig</name>
      <set-method>addExoCacheConfig</set-method>
      <type>org.exoplatform.services.cache.ExoCacheConfigPlugin</type>
      <description>Configures the cache for PDF Viewer REST Service</description>
      <init-params>
        <object-param>
          <name>org.exoplatform.ecm.REST.viewer.PDFViewerRESTService</name>
          <description></description>
          <object type="org.exoplatform.services.cache.ExoCacheConfig">
            <field name="name"><string>org.exoplatform.ecm.REST.viewer.PDFViewerRESTService</string></field>
            <field name="maxSize"><int>${wcm.cache.pdfviewer.capacity:300}</int></field>
            <field name="liveTime"><long>${wcm.cache.pdfviewer.timetolive:600000}</long></field>
            <field name="implementation"><string>org.exoplatform.services.cache.concurrent.ConcurrentFIFOExoCache</string></field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
	
</configuration>
