org.apache.shale.clay.config
Interface ClayConfigParser

All Known Implementing Classes:
ClayTemplateParser, ClayXmlParser

public interface ClayConfigParser

This interfaces is used by a ConfigBean instance to load a configuration file. These files come in two flavors XML and HTML. The ComponentConfigBean handles materializing XML documents into a graph of ComponentBean and the TemplateConfigBean loads an HTML template into ComponentBean object representations.


Method Summary
 ConfigBean getConfig()
          Returns an instance of the ConfigBean that pools a collection of faces meta-component definitions.
 void loadConfigFile(URL url, String watchDogName)
          Loads the url identified by the watchDogName into the ConfigBean object pool.
 void setConfig(ConfigBean config)
          Sets an instance of the ConfigBean that pools a collection of faces meta-component definitions.
 

Method Detail

setConfig

void setConfig(ConfigBean config)

Sets an instance of the ConfigBean that pools a collection of faces meta-component definitions.

Parameters:
config - bean pool

getConfig

ConfigBean getConfig()

Returns an instance of the ConfigBean that pools a collection of faces meta-component definitions.

Returns:
bean pool

loadConfigFile

void loadConfigFile(URL url,
                    String watchDogName)
                    throws IOException,
                           SAXException

Loads the url identified by the watchDogName into the ConfigBean object pool.

Parameters:
url - file to load
watchDogName - dependency watch group for the url file
Throws:
IOException - file load
SAXException - xml parser


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.