-
To define a Dictionary Bootstrap component, use the following Spring framework
XML:
<bean id="kbmodel.extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/kbModel.xml</value> </list> </property> </bean>
-
Add the XML snippet to an Alfresco extension context XML file in the classpath,
following the usual Alfresco customization conventions.
Note: For a default installation of Alfresco, extension context XML files are placed into <installLocation>/tomcat/shared/classes/alfresco/extension.
The content models that Alfresco provides out of the box are all registered this way.
Using the bootstrap approach, changes to model definitions through the content-model XML file are only registered after restarting the content repository. As this can lead to long development and test cycles, use the bootstrap approach only once the model is baked. For this reason, there is an alternate dynamic approach to deploying a content model, allowing the registration and updates to content models without the need to restart the content repository to pick up the changes.
