Package org.apache.struts2.config
Class PropertiesConfigurationProvider
java.lang.Object
org.apache.struts2.config.PropertiesConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider,ContainerProvider,PackageProvider
- Direct Known Subclasses:
DefaultPropertiesProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called before removed from the configuration managervoidinit(Configuration configuration) Initializes with the configurationvoidLoads the packages for the configuration.protected voidloadSettings(LocatableProperties props, org.apache.struts2.config.Settings settings) booleanTells whether the ContainerProvider should reload its configurationvoidregister(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the Container
-
Constructor Details
-
PropertiesConfigurationProvider
public PropertiesConfigurationProvider()
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:ContainerProviderCalled before removed from the configuration manager- Specified by:
destroyin interfaceContainerProvider
-
init
Description copied from interface:ContainerProviderInitializes with the configuration- Specified by:
initin interfaceContainerProvider- Specified by:
initin interfacePackageProvider- Parameters:
configuration- The configuration- Throws:
ConfigurationException- If anything goes wrong
-
loadPackages
Description copied from interface:PackageProviderLoads the packages for the configuration.- Specified by:
loadPackagesin interfacePackageProvider- Throws:
ConfigurationException- in case of configuration errors
-
needsReload
public boolean needsReload()Description copied from interface:ContainerProviderTells whether the ContainerProvider should reload its configuration- Specified by:
needsReloadin interfaceContainerProvider- Specified by:
needsReloadin interfacePackageProvider- Returns:
- true, whether the ContainerProvider should reload its configuration, falseotherwise.
-
register
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException Description copied from interface:ContainerProviderRegisters beans and properties for the Container- Specified by:
registerin interfaceContainerProvider- Parameters:
builder- The builder to register beans withprops- The properties to register constants with- Throws:
ConfigurationException- If anything goes wrong
-
loadSettings
- Parameters:
props- propertiessettings- settings
-