Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  A Look at Commons Chain, Part 2
Subject:   Great introductory article
Date:   2005-03-10 14:44:43
From:   vijay172
Hi,


This is a great introductory article on Chains.I have been curious about it but this article clearly explained the concept froma high level beautifully.Very well written with a great example to explain how composition works with Chains.



Few things to be clarified- why use catalog-name of "auto-sales" within the command for "arrange-financing" while referring to a chain.



Also,in CatalogLoader, does parsing the config file load up the catalog the first time round ?


Vijay

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Bill Siggelkow photo Great introductory article
    2005-03-11 06:26:53  Bill Siggelkow | O'Reilly Author [View]

    Vijay,
    It sounds like your comments are regarding part 1, is that
    correct? Anyway, I used the catalog name "auto-sales" to
    illustrate how you can name catalogs. Chain allows you to
    have multiple catalogs in a config file like:

    <catalogs>
    <catalog name="auto-sales">
    <chain name="sell-vehicle">...
    </catalog>
    <catalog name="repair-services>
    ...
    </catalog>
    </catalogs>

    To answer your last question, yes, parsing the config file does load the catalog (behind the scenes it uses Digester rules to create objects from the XML).