Save This Page
Home » struts-2.0.11.2-src » org.apache » struts2 » config » [javadoc | source]
org.apache.struts2.config
public class: StrutsXmlConfigurationProvider [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
      org.apache.struts2.config.StrutsXmlConfigurationProvider
Override Xwork class so we can use an arbitrary config file
Constructor:
 public StrutsXmlConfigurationProvider(boolean errorIfMissing) 
 public StrutsXmlConfigurationProvider(String filename,
    boolean errorIfMissing,
    ServletContext ctx) 
    Constructs the configuration provider
    Parameters:
    filename - The filename to look for
    errorIfMissing - If we should throw an exception if the file can't be found
    ctx - Our ServletContext
Method from org.apache.struts2.config.StrutsXmlConfigurationProvider Summary:
findInFileSystem,   getConfigurationUrls,   loadPackages,   needsReload,   register,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.config.StrutsXmlConfigurationProvider Detail:
 protected URL findInFileSystem(String fileName) throws IOException 
 protected Iterator getConfigurationUrls(String fileName) throws IOException 
    Look for the configuration file on the classpath and in the file system
 public  void loadPackages() 
 public boolean needsReload() 
    Overrides needs reload to ensure it is only checked once per request
 public  void register(ContainerBuilder containerBuilder,
    LocatableProperties props) throws ConfigurationException 
 public String toString()