Package org.apache.struts2.convention
Class ClasspathPackageProvider
java.lang.Object
org.apache.struts2.convention.ClasspathPackageProvider
- All Implemented Interfaces:
com.opensymphony.xwork2.config.PackageProvider
public class ClasspathPackageProvider
extends Object
implements com.opensymphony.xwork2.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
ConstructorsConstructorDescriptionClasspathPackageProvider
(com.opensymphony.xwork2.inject.Container container) -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(com.opensymphony.xwork2.config.Configuration configuration) void
boolean
-
Constructor Details
-
ClasspathPackageProvider
public ClasspathPackageProvider(com.opensymphony.xwork2.inject.Container container)
-
-
Method Details
-
init
public void init(com.opensymphony.xwork2.config.Configuration configuration) throws com.opensymphony.xwork2.config.ConfigurationException - Specified by:
init
in interfacecom.opensymphony.xwork2.config.PackageProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
needsReload
public boolean needsReload()- Specified by:
needsReload
in interfacecom.opensymphony.xwork2.config.PackageProvider
-
loadPackages
public void loadPackages() throws com.opensymphony.xwork2.config.ConfigurationException- Specified by:
loadPackages
in interfacecom.opensymphony.xwork2.config.PackageProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-