Package org.apache.struts2.config
Interface ContainerProvider
- All Known Subinterfaces:
- BeanSelectionProvider,- ConfigurationProvider,- ServletContextAwareConfigurationProvider
- All Known Implementing Classes:
- AbstractBeanSelectionProvider,- DefaultPropertiesProvider,- FileManagerFactoryProvider,- FileManagerProvider,- PropertiesConfigurationProvider,- StrutsBeanSelectionProvider,- StrutsDefaultConfigurationProvider,- StrutsJavaConfigurationProvider,- StrutsXmlConfigurationProvider,- StubConfigurationProvider,- XmlConfigurationProvider,- XmlDocConfigurationProvider
public interface ContainerProvider
Provides beans and constants/properties for the Container
- Since:
- 2.1
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()Called before removed from the configuration managervoidinit(Configuration configuration) Initializes with the configurationbooleanTells whether the ContainerProvider should reload its configurationvoidregister(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the Container
- 
Method Details- 
destroyvoid destroy()Called before removed from the configuration manager
- 
initInitializes with the configuration- Parameters:
- configuration- The configuration
- Throws:
- ConfigurationException- If anything goes wrong
 
- 
needsReloadboolean needsReload()Tells whether the ContainerProvider should reload its configuration- Returns:
- true, whether the ContainerProvider should reload its configuration, falseotherwise.
 
- 
registerRegisters beans and properties for the Container- Parameters:
- builder- The builder to register beans with
- props- The properties to register constants with
- Throws:
- ConfigurationException- If anything goes wrong
 
 
-