2.2.5.1. Initializing the conf-part for loading repository-configuration.xml

When the server starts, the jcr-configuration.xml file is initialized. The addConfig function will be referred to the org.exoplatform.services.jcr.impl.config.RepositoryServiceConfigurationPlugin component-plugin to load the war:/ks-extension/jcr/repository-configuration.xml file.


<component-plugin>
  <!-- The name of the plugin -->
  <name>Sample RepositoryServiceConfiguration Plugin</name>
  <!-- The name of the method to call on the RepositoryServiceConfiguration
       in order to add the RepositoryServiceConfigurations -->
  <set-method>addConfig</set-method>
  <!-- The full qualified name of the RepositoryServiceConfigurationPlugin -->
  <type>org.exoplatform.services.jcr.impl.config.RepositoryServiceConfigurationPlugin</type>
  <init-params>
    <value-param>
      <name>conf-path</name>
      <description>JCR configuration file</description>
      <value>war:/ks-extension/jcr/repository-configuration.xml</value>
    </value-param>
  </init-params>
</component-plugin>
NameSet-methodTypeDescription
RepositoryService ConfigurationPlugin addConfigorg.exoplatform.services. jcr.impl.config.Repository ServiceConfigurationPluginReads the configuration of JCR data to initialize data.
NamePossible valueDefault valueDescription
conf-path string war:/ks-extension/jcr/repository-configuration.xmlThe path to the repository-configuration.xml file.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus