Package org.apache.struts2.config
Class DefaultPropertiesProvider
java.lang.Object
org.apache.struts2.config.PropertiesConfigurationProvider
org.apache.struts2.config.DefaultPropertiesProvider
- All Implemented Interfaces:
ConfigurationProvider
,ContainerProvider
,PackageProvider
Loads the default properties, separate from the usual struts.properties loading
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called before removed from the configuration managervoid
init
(Configuration configuration) Initializes with the configurationvoid
register
(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the ContainerMethods inherited from class org.apache.struts2.config.PropertiesConfigurationProvider
loadPackages, loadSettings, needsReload
-
Constructor Details
-
DefaultPropertiesProvider
public DefaultPropertiesProvider()
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:ContainerProvider
Called before removed from the configuration manager- Specified by:
destroy
in interfaceContainerProvider
- Overrides:
destroy
in classPropertiesConfigurationProvider
-
init
Description copied from interface:ContainerProvider
Initializes with the configuration- Specified by:
init
in interfaceContainerProvider
- Specified by:
init
in interfacePackageProvider
- Overrides:
init
in classPropertiesConfigurationProvider
- Parameters:
configuration
- The configuration- Throws:
ConfigurationException
- If anything goes wrong
-
register
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException Description copied from interface:ContainerProvider
Registers beans and properties for the Container- Specified by:
register
in interfaceContainerProvider
- Overrides:
register
in classPropertiesConfigurationProvider
- Parameters:
builder
- The builder to register beans withprops
- The properties to register constants with- Throws:
ConfigurationException
- If anything goes wrong
-