|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider
org.apache.struts2.config.StrutsXmlConfigurationProvider
public class StrutsXmlConfigurationProvider
Override Xwork class so we can use an arbitrary config file
Constructor Summary | |
---|---|
StrutsXmlConfigurationProvider(boolean errorIfMissing)
Constructs the configuration provider |
|
StrutsXmlConfigurationProvider(java.lang.String filename,
boolean errorIfMissing,
javax.servlet.ServletContext ctx)
Constructs the configuration provider |
Method Summary | |
---|---|
protected java.net.URL |
findInFileSystem(java.lang.String fileName)
|
protected java.util.Iterator<java.net.URL> |
getConfigurationUrls(java.lang.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)
|
java.lang.String |
toString()
|
Methods inherited from class com.opensymphony.xwork2.config.providers.XmlConfigurationProvider |
---|
addAction, addPackage, addResultTypes, buildExceptionMappings, buildInterceptorList, buildPackageContext, buildResults, destroy, equals, getDtdMappings, guessResultType, hashCode, init, loadDefaultActionRef, loadDefaultClassRef, loadDefaultInterceptorRef, loadExtraConfiguration, loadGlobalResults, loadGobalExceptionMappings, loadInterceptors, loadInterceptorStack, loadInterceptorStacks, setDtdMappings, setObjectFactory, setThrowExceptionOnDuplicateBeans, verifyAction, verifyResultType |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StrutsXmlConfigurationProvider(boolean errorIfMissing)
errorIfMissing
- If we should throw an exception if the file can't be foundpublic StrutsXmlConfigurationProvider(java.lang.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 ServletContextMethod Detail |
---|
public 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 java.util.Iterator<java.net.URL> getConfigurationUrls(java.lang.String fileName) throws java.io.IOException
getConfigurationUrls
in class XmlConfigurationProvider
fileName
- The file name to retrieve
java.io.IOException
XmlConfigurationProvider.getConfigurationUrls(java.lang.String)
protected java.net.URL findInFileSystem(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean needsReload()
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
needsReload
in class XmlConfigurationProvider
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |