Package org.apache.struts2.config
Class StrutsJavaConfigurationProvider
java.lang.Object
org.apache.struts2.config.StrutsJavaConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider,ContainerProvider,PackageProvider
-
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.booleanTells whether the ContainerProvider should reload its configurationvoidregister(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the ContainervoidsetThrowExceptionOnDuplicateBeans(boolean val) voidsetValueSubstitutor(ValueSubstitutor valueSubstitutor)
-
Constructor Details
-
StrutsJavaConfigurationProvider
-
-
Method Details
-
setThrowExceptionOnDuplicateBeans
public void setThrowExceptionOnDuplicateBeans(boolean val) -
setValueSubstitutor
-
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
-
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
-
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.
-
loadPackages
Description copied from interface:PackageProviderLoads the packages for the configuration.- Specified by:
loadPackagesin interfacePackageProvider- Throws:
ConfigurationException- in case of configuration errors
-
destroy
public void destroy()Description copied from interface:ContainerProviderCalled before removed from the configuration manager- Specified by:
destroyin interfaceContainerProvider
-