Class CFLoader


  • public class CFLoader
    extends Object
    Loads teh configuration from the file or other source. Typical idiom for use:
             FileInputStream fis = getFileInputStream("alias/cfg-alias.xml");
             CFLoader config = new CFLoader();
             CFBundle bundle = config.loadBundle(fis, "service");
             CFNode node = bundle.getNamedConfig("A");
     
    In this case, a file with a relative path is loaded, the bundle created for the given tag (so all of the tags named "service" are in the resulting bundle) and then a specific configuration of type "service" with name "A" is retrieved. This is the top node for that configuration. All environment variables and inheritence has been resolved, so you can just use the CFNode's methods.