public class PropertiesConfigurationProvider extends Object implements ConfigurationProvider
Constructor and Description |
---|
PropertiesConfigurationProvider() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called before removed from the configuration manager
|
void |
init(Configuration configuration)
Initializes with the configuration
|
void |
loadPackages()
Loads the packages for the configuration.
|
protected void |
loadSettings(LocatableProperties props,
org.apache.struts2.config.Settings settings) |
boolean |
needsReload()
Tells whether the ContainerProvider should reload its configuration
|
void |
register(ContainerBuilder builder,
LocatableProperties props)
Registers beans and properties for the Container
|
public void destroy()
ContainerProvider
destroy
in interface ContainerProvider
public void init(Configuration configuration) throws ConfigurationException
ContainerProvider
init
in interface ContainerProvider
init
in interface PackageProvider
configuration
- The configurationConfigurationException
- If anything goes wrongpublic void loadPackages() throws ConfigurationException
PackageProvider
loadPackages
in interface PackageProvider
ConfigurationException
- in case of configuration errorspublic boolean needsReload()
ContainerProvider
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException
ContainerProvider
register
in interface ContainerProvider
builder
- The builder to register beans withprops
- The properties to register constants withConfigurationException
- If anything goes wrongprotected void loadSettings(LocatableProperties props, org.apache.struts2.config.Settings settings)
props
- propertiessettings
- settingsCopyright © 2000–2020 Apache Software Foundation. All rights reserved.