Package org.apache.struts2.boot
Class RegistryConfigurationProvider
java.lang.Object
org.apache.struts2.boot.RegistryConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider,ContainerProvider,PackageProvider,ServletContextAwareConfigurationProvider
public class RegistryConfigurationProvider
extends Object
implements ServletContextAwareConfigurationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called before removed from the configuration managervoidinit(Configuration configuration) Initializes with the configurationvoidinitWithContext(jakarta.servlet.ServletContext servletContext) This is a lazy constructor, called just after class was initiatedvoidLoads the packages for the configuration.booleanTells whether the ContainerProvider should reload its configurationvoidregister(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the Container
-
Constructor Details
-
RegistryConfigurationProvider
public RegistryConfigurationProvider()
-
-
Method Details
-
initWithContext
public void initWithContext(jakarta.servlet.ServletContext servletContext) Description copied from interface:ServletContextAwareConfigurationProviderThis is a lazy constructor, called just after class was initiated- Specified by:
initWithContextin interfaceServletContextAwareConfigurationProvider- Parameters:
servletContext- current instance ofServletContext
-
init
Description copied from interface:ContainerProviderInitializes with the configuration- Specified by:
initin interfaceContainerProvider- Specified by:
initin interfacePackageProvider- Parameters:
configuration- The configuration
-
register
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
-
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.
-
destroy
public void destroy()Description copied from interface:ContainerProviderCalled before removed from the configuration manager- Specified by:
destroyin interfaceContainerProvider
-
loadPackages
public void loadPackages()Description copied from interface:PackageProviderLoads the packages for the configuration.- Specified by:
loadPackagesin interfacePackageProvider
-