|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.clay.config.ClayXmlParser
public class ClayXmlParser
This class loads the configuration files defining page fragments and
caches a graph of beans in application scope. The location of the default
configuration file is located at Globals.DEFAULT_CLAY_CONFIG_FILE
.
A comma value list of names can be supplied as a initialization parameter in
the web deployment descriptor using the parameter name
Globals.CLAY_CONFIG_FILES
.
Constructor Summary | |
---|---|
ClayXmlParser()
|
Method Summary | |
---|---|
protected void |
configureRules()
This method is called once to register the object binding rules with the Digester instance. |
ConfigBean |
getConfig()
Returns an instance of the ConfigBean that pools a
collection of faces meta-component definitions. |
void |
loadConfigFile(URL configURL,
String watchDogName)
Loads a configuration file from a url . |
void |
setConfig(ConfigBean config)
Sets an instance of the ConfigBean that pools a
collection of faces meta-component definitions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClayXmlParser()
Method Detail |
---|
public ConfigBean getConfig()
ClayConfigParser
Returns an instance of the ConfigBean
that pools a
collection of faces meta-component definitions.
getConfig
in interface ClayConfigParser
ConfigBean
instance of the component metadata containerpublic void setConfig(ConfigBean config)
ClayConfigParser
Sets an instance of the ConfigBean
that pools a
collection of faces meta-component definitions.
setConfig
in interface ClayConfigParser
config
- ConfigBean
instance of the component metadata containerpublic void loadConfigFile(URL configURL, String watchDogName) throws IOException, SAXException
Loads a configuration file from a url
. The
input stream is identifed by the watchDogName
.
loadConfigFile
in interface ClayConfigParser
configURL
- url of the target configuration filewatchDogName
- an id used to group files that need to be reloaded together
IOException
- raised by the digester processing the configUrl
SAXException
- raised by the digester processing the XML config fileprotected void configureRules()
This method is called once to register the object binding rules with
the Digester
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |