Package org.apache.struts2.convention
Class ClasspathPackageProvider
java.lang.Object
org.apache.struts2.convention.ClasspathPackageProvider
- All Implemented Interfaces:
org.apache.struts2.config.PackageProvider
public class ClasspathPackageProvider
extends Object
implements org.apache.struts2.config.PackageProvider
This class is a configuration provider for the XWork configuration
system. This is really the only way to truly handle loading of the
packages, actions and results correctly. This doesn't contain any
logic and instead delegates to the configured instance of the
ActionConfigBuilder interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(org.apache.struts2.config.Configuration configuration) voidboolean
-
Constructor Details
-
ClasspathPackageProvider
public ClasspathPackageProvider(org.apache.struts2.inject.Container container)
-
-
Method Details
-
init
public void init(org.apache.struts2.config.Configuration configuration) throws org.apache.struts2.config.ConfigurationException - Specified by:
initin interfaceorg.apache.struts2.config.PackageProvider- Throws:
org.apache.struts2.config.ConfigurationException
-
needsReload
public boolean needsReload()- Specified by:
needsReloadin interfaceorg.apache.struts2.config.PackageProvider
-
loadPackages
public void loadPackages() throws org.apache.struts2.config.ConfigurationException- Specified by:
loadPackagesin interfaceorg.apache.struts2.config.PackageProvider- Throws:
org.apache.struts2.config.ConfigurationException
-