<?xml version="1.0" encoding="UTF-8"?>

<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>
        <key>org.exoplatform.onlyoffice.jpa.EditorConfigDAO</key>
        <type>org.exoplatform.onlyoffice.jpa.dao.EditorConfigDAOImpl</type>
    </component>

    <component>
        <type>org.exoplatform.onlyoffice.jpa.storage.impl.RDBMSEditorConfigStorageImpl</type>
    </component>

    <component>
        <key>org.exoplatform.onlyoffice.jpa.EditorConfigStorage</key>
        <type>org.exoplatform.onlyoffice.jpa.storage.cache.CachedEditorConfigStorage</type>
    </component>

    <external-component-plugins>
        <target-component>org.exoplatform.commons.api.persistence.DataInitializer</target-component>
        <component-plugin>
            <name>Only Office ChangeLogsPlugin</name>
            <set-method>addChangeLogsPlugin</set-method>
            <type>org.exoplatform.commons.persistence.impl.ChangeLogsPlugin</type>
            <init-params>
                <values-param>
                    <name>changelogs</name>
                    <description>Change logs of onlyoffice</description>
                    <value>db.changelogs/onlyoffice-changelog-1.0.0.xml</value>
                </values-param>
            </init-params>
        </component-plugin>
    </external-component-plugins>

</configuration>
