public class StrutsXmlConfigurationProvider extends XmlConfigurationProvider
Constructor and Description |
---|
StrutsXmlConfigurationProvider(boolean errorIfMissing)
Constructs the configuration provider
|
StrutsXmlConfigurationProvider(String filename,
boolean errorIfMissing,
javax.servlet.ServletContext ctx)
Constructs the configuration provider
|
Modifier and Type | Method and Description |
---|---|
protected URL |
findInFileSystem(String fileName) |
protected Iterator<URL> |
getConfigurationUrls(String fileName)
Look for the configuration file on the classpath and in the file system
|
void |
loadPackages() |
boolean |
needsReload()
Overrides needs reload to ensure it is only checked once per request
|
void |
register(ContainerBuilder containerBuilder,
LocatableProperties props) |
String |
toString() |
addAction, addPackage, addResultTypes, buildAllowedMethods, buildExceptionMappings, buildInterceptorList, buildPackageContext, buildResults, destroy, equals, getDtdMappings, guessResultType, hashCode, init, loadDefaultActionRef, loadDefaultClassRef, loadDefaultInterceptorRef, loadExtraConfiguration, loadGlobalResults, loadGobalExceptionMappings, loadInterceptors, loadInterceptorStack, loadInterceptorStacks, setDtdMappings, setFileManagerFactory, setObjectFactory, setThrowExceptionOnDuplicateBeans, verifyAction, verifyResultType
public StrutsXmlConfigurationProvider(boolean errorIfMissing)
errorIfMissing
- If we should throw an exception if the file can't be foundpublic StrutsXmlConfigurationProvider(String filename, boolean errorIfMissing, javax.servlet.ServletContext ctx)
filename
- The filename to look forerrorIfMissing
- If we should throw an exception if the file can't be foundctx
- Our ServletContextpublic void register(ContainerBuilder containerBuilder, LocatableProperties props) throws ConfigurationException
register
in interface ContainerProvider
register
in class XmlConfigurationProvider
ConfigurationException
public void loadPackages()
loadPackages
in interface PackageProvider
loadPackages
in class XmlConfigurationProvider
protected Iterator<URL> getConfigurationUrls(String fileName) throws IOException
getConfigurationUrls
in class XmlConfigurationProvider
fileName
- The file name to retrieveIOException
XmlConfigurationProvider.getConfigurationUrls(java.lang.String)
protected URL findInFileSystem(String fileName) throws IOException
IOException
public boolean needsReload()
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
needsReload
in class XmlConfigurationProvider
public String toString()
toString
in class XmlConfigurationProvider
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.