Dashboard > RIFE > ... > Repository > IoC properties support inside the repository
RIFE Log In | Sign Up   View a printable version of the current page.
IoC properties support inside the repository


Added by Geert Bevin, last edited by Geert Bevin on Oct 12, 2005
Labels: 
(None)

To make IoC even handier, IoC properties support has been added to the Repository.

This means that you can do:

<!DOCTYPE rep SYSTEM "/dtd/rep.dtd">
<rep>
    <property name="datasource"><datasource>postgresql</datasource>

    <participant param="rep/datasources.xml">ParticipantDatasources</participant>
    <participant param="rep/scheduler.xml" name="scheduler">ParticipantMemoryScheduler</participant>
    <participant param="rep/site.xml">ParticipantSite</participant>
</rep>

The datasource will then be picked up by all the participants (all the elements in the site will have this datasource defined, for instance).

This is how the priority graph for property resolving and retrieval has been implemented:



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators