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>
In which:
Name | Set-method | Type | Description |
---|---|---|---|
RepositoryService ConfigurationPlugin | addConfig | org.exoplatform.services. jcr.impl.config.Repository ServiceConfigurationPlugin | Reads the configuration of JCR data to initialize data. |
Init-params
Name | Possible value | Default value | Description |
---|---|---|---|
conf-path |
string
| war:/ks-extension/jcr/repository-configuration.xml | The path to the repository-configuration.xml file.
|