Class StrutsDefaultConfigurationProvider
java.lang.Object
org.apache.struts2.config.providers.StrutsDefaultConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider
,ContainerProvider
,PackageProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called before removed from the configuration managervoid
init
(Configuration configuration) Initializes with the configurationvoid
Loads the packages for the configuration.boolean
Tells whether the ContainerProvider should reload its configurationvoid
register
(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the Container
-
Constructor Details
-
StrutsDefaultConfigurationProvider
public StrutsDefaultConfigurationProvider()
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:ContainerProvider
Called before removed from the configuration manager- Specified by:
destroy
in interfaceContainerProvider
-
init
Description copied from interface:ContainerProvider
Initializes with the configuration- Specified by:
init
in interfaceContainerProvider
- Specified by:
init
in interfacePackageProvider
- Parameters:
configuration
- The configuration- Throws:
ConfigurationException
- If anything goes wrong
-
loadPackages
Description copied from interface:PackageProvider
Loads the packages for the configuration.- Specified by:
loadPackages
in interfacePackageProvider
- Throws:
ConfigurationException
- in case of configuration errors
-
needsReload
public boolean needsReload()Description copied from interface:ContainerProvider
Tells whether the ContainerProvider should reload its configuration- Specified by:
needsReload
in interfaceContainerProvider
- Specified by:
needsReload
in 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:ContainerProvider
Registers beans and properties for the Container- Specified by:
register
in interfaceContainerProvider
- Parameters:
builder
- The builder to register beans withprops
- The properties to register constants with- Throws:
ConfigurationException
- If anything goes wrong
-