JBoss.orgCommunity Documentation

Initialize the conf-part for loading repository-configuration.xml

When the server starts, the jcr-configuration.xml file is initialized. The component-plugin named addConfig will be referred to org.exoplatform.services.jcr.impl.config.RepositoryServiceConfigurationPlugin 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>
Name Set-method Type Description
RepositoryService ConfigurationPlugin addConfigorg.exoplatform.services. jcr.impl.config.Repository ServiceConfigurationPlugin Read the configuration of JCR data to initialize data.
Name Possible value Default value Description
conf-path string war:/ks-extension/jcr/ repository- configuration.xml The path to the repository-configuration.xml file.