| java.lang.Object com.opensymphony.xwork.config.providers.XmlConfigurationProvider
All known Subclasses: com.opensymphony.webwork.sitegraph.collectors.ArbitraryXMLConfigurationProvider,
XmlConfigurationProvider | public class XmlConfigurationProvider implements ConfigurationProvider(Code) | | Looks in the classpath for "xwork.xml" and uses it for the XWork configuration.
author: tmjee author: Rainer Hermanns author: Neo version: $Revision: 1539 $ |
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. | public void | destroy() | public boolean | equals(Object o) | protected InputStream | getInputStream(String fileName) | public int | hashCode() | public void | init(Configuration configuration) | 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 InterceptorStackConfig | loadInterceptorStack(Element element, PackageConfig context) | protected void | loadInterceptorStacks(Element element, PackageConfig context) | protected void | loadInterceptors(PackageConfig context, Element element) | public 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) |
XmlConfigurationProvider | public XmlConfigurationProvider()(Code) | | |
XmlConfigurationProvider | public XmlConfigurationProvider(String filename)(Code) | | |
buildExceptionMappings | protected List buildExceptionMappings(Element element, PackageConfig packageContext)(Code) | | Build a map of ResultConfig objects from below a given XML element.
|
buildPackageContext | protected PackageConfig buildPackageContext(Element packageElement)(Code) | | This method builds a package context by looking for the parents of this new package.
If no parents are found, it will return a root package.
|
buildResults | protected Map buildResults(Element element, PackageConfig packageContext)(Code) | | Build a map of ResultConfig objects from below a given XML element.
|
destroy | public void destroy()(Code) | | |
hashCode | public int hashCode()(Code) | | |
loadGlobalResults | protected void loadGlobalResults(PackageConfig packageContext, Element packageElement)(Code) | | Load all of the global results for this package from the XML element.
|
loadGobalExceptionMappings | protected void loadGobalExceptionMappings(PackageConfig packageContext, Element packageElement)(Code) | | Load all of the global results for this package from the XML element.
|
needsReload | public boolean needsReload()(Code) | | Tells whether the ConfigurationProvider should reload its configuration. This method should only be called
if ConfigurationManager.isReloadingConfigs() is true.
true if the file has been changed since the last time we read it |
|
|