You are here

Setting composite properties in the global properties file

The imap.server.mountPoints property is used as an example for setting composite properties.
The ImapConfigMountPointsBean class that holds the component beans has four properties of its own:
  • beanName
  • store
  • rootPath
  • mode
  1. Open the <classpathRoot>/ file.
  2. To set some overall defaults for all component instances, use the format:

    <property>.default.<component property>
    These values would show up, for example, when you added a new component instance but did not specify its properties.

    For example:${}

    This example does not define a default for beanName because there is a way of populating it for each instance.

  3. To set up the imap.server.mountPoints with a composite value, set the master composite property using a comma-separated list.

    For example:


    This defines that the property contains two ImapConfigMountPointsBean instances, named Repository_virtual and Repository_archive. Because ImapConfigMountPointsBean implements the BeanNameAware Spring interface and has a beanName property, these instance names are automatically set as the bean names.

  4. To define component properties specific to each component instance, use the format:

    <property>.value.<component instance name>.<component property>

    For example:


Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.