Package org.apache.struts2.config
Interface PackageProvider
- All Known Subinterfaces:
- BeanSelectionProvider,- ConfigurationProvider,- ServletContextAwareConfigurationProvider
- All Known Implementing Classes:
- AbstractBeanSelectionProvider,- DefaultPropertiesProvider,- PropertiesConfigurationProvider,- StrutsBeanSelectionProvider,- StrutsDefaultConfigurationProvider,- StrutsJavaConfigurationProvider,- StrutsXmlConfigurationProvider,- StubConfigurationProvider,- XmlConfigurationProvider,- XmlDocConfigurationProvider
public interface PackageProvider
Provides configuration packages.  The separate init and loadPackages calls are due to the need to
 preserve backwards compatibility with the 2.0 
ConfigurationProvider interface- Since:
- 2.1
- 
Method SummaryModifier and TypeMethodDescriptionvoidinit(Configuration configuration) Initializes with the configurationvoidLoads the packages for the configuration.booleanTells whether the PackageProvider should reload its configuration
- 
Method Details- 
initInitializes with the configuration- Parameters:
- configuration- The configuration
- Throws:
- ConfigurationException- If anything goes wrong
 
- 
needsReloadboolean needsReload()Tells whether the PackageProvider should reload its configuration- Returns:
- true, whether the PackageProvider should reload its configuration, falseotherwise.
 
- 
loadPackagesLoads the packages for the configuration.- Throws:
- ConfigurationException- in case of configuration errors
 
 
-