|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.config.providers.XmlConfigurationProvider
Looks in the classpath for "xwork.xml" and uses it for the XWork configuration.
Constructor Summary | |
XmlConfigurationProvider()
|
|
XmlConfigurationProvider(String filename)
|
Method Summary | |
protected void |
addAction(Element actionElement,
PackageConfig packageContext)
|
protected void |
addPackage(Element packageElement)
Create a PackageConfig from an XML element representing it. |
protected void |
addResultTypes(PackageConfig packageContext,
Element element)
|
protected List |
buildExceptionMappings(Element element,
PackageConfig packageContext)
Build a map of ResultConfig objects from below a given XML element. |
protected List |
buildExternalRefs(Element element,
PackageConfig context)
|
protected List |
buildInterceptorList(Element element,
PackageConfig context)
|
protected PackageConfig |
buildPackageContext(Element packageElement)
This method builds a package context by looking for the parents of this new package. |
protected Map |
buildResults(Element element,
PackageConfig packageContext)
Build a map of ResultConfig objects from below a given XML element. |
void |
destroy()
|
boolean |
equals(Object o)
|
protected InputStream |
getInputStream(String fileName)
|
int |
hashCode()
|
void |
init(Configuration configuration)
Initializes the configuration object. |
protected void |
loadDefaultActionRef(PackageConfig packageContext,
Element element)
|
protected void |
loadDefaultInterceptorRef(PackageConfig packageContext,
Element element)
|
protected void |
loadGlobalResults(PackageConfig packageContext,
Element packageElement)
Load all of the global results for this package from the XML element. |
protected void |
loadGobalExceptionMappings(PackageConfig packageContext,
Element packageElement)
Load all of the global results for this package from the XML element. |
protected void |
loadInterceptors(PackageConfig context,
Element element)
|
protected InterceptorStackConfig |
loadInterceptorStack(Element element,
PackageConfig context)
|
protected void |
loadInterceptorStacks(Element element,
PackageConfig context)
|
boolean |
needsReload()
Tells whether the ConfigurationProvider should reload its configuration. |
protected boolean |
verifyAction(String className,
String name,
Location loc)
|
protected Class |
verifyResultType(String className,
Location loc)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlConfigurationProvider()
public XmlConfigurationProvider(String filename)
Method Detail |
public void destroy()
destroy
in interface ConfigurationProvider
public boolean equals(Object o)
public int hashCode()
public void init(Configuration configuration)
ConfigurationProvider
init
in interface ConfigurationProvider
public boolean needsReload()
needsReload
in interface ConfigurationProvider
protected InputStream getInputStream(String fileName)
protected void addAction(Element actionElement, PackageConfig packageContext) throws ConfigurationException
ConfigurationException
protected boolean verifyAction(String className, String name, Location loc)
protected void addPackage(Element packageElement) throws ConfigurationException
ConfigurationException
protected void addResultTypes(PackageConfig packageContext, Element element)
protected Class verifyResultType(String className, Location loc)
protected List buildExternalRefs(Element element, PackageConfig context) throws ConfigurationException
ConfigurationException
protected List buildInterceptorList(Element element, PackageConfig context) throws ConfigurationException
ConfigurationException
protected PackageConfig buildPackageContext(Element packageElement)
protected Map buildResults(Element element, PackageConfig packageContext)
protected List buildExceptionMappings(Element element, PackageConfig packageContext)
protected void loadDefaultInterceptorRef(PackageConfig packageContext, Element element)
protected void loadDefaultActionRef(PackageConfig packageContext, Element element)
protected void loadGlobalResults(PackageConfig packageContext, Element packageElement)
protected void loadGobalExceptionMappings(PackageConfig packageContext, Element packageElement)
protected InterceptorStackConfig loadInterceptorStack(Element element, PackageConfig context) throws ConfigurationException
ConfigurationException
protected void loadInterceptorStacks(Element element, PackageConfig context) throws ConfigurationException
ConfigurationException
protected void loadInterceptors(PackageConfig context, Element element) throws ConfigurationException
ConfigurationException
|
XWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |