Package org.apache.struts2.convention
Class ClasspathPackageProvider
java.lang.Object
org.apache.struts2.convention.ClasspathPackageProvider
- All Implemented Interfaces:
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(Configuration configuration) Initializes with the configurationvoidLoads the packages for the configuration.booleanTells whether the PackageProvider should reload its configuration
-
Constructor Details
-
ClasspathPackageProvider
-
-
Method Details
-
init
Description copied from interface:PackageProviderInitializes with the configuration- Specified by:
initin interfacePackageProvider- Parameters:
configuration- The configuration- Throws:
ConfigurationException- If anything goes wrong
-
needsReload
public boolean needsReload()Description copied from interface:PackageProviderTells whether the PackageProvider should reload its configuration- Specified by:
needsReloadin interfacePackageProvider- Returns:
- true, whether the PackageProvider should reload its configuration, falseotherwise.
-
loadPackages
Description copied from interface:PackageProviderLoads the packages for the configuration.- Specified by:
loadPackagesin interfacePackageProvider- Throws:
ConfigurationException- in case of configuration errors
-