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 Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called before removed from the configuration managervoid
init
(Configuration configuration) Initializes with the configurationboolean
Tells whether the ContainerProvider should reload its configurationvoid
register
(ContainerBuilder builder, LocatableProperties props) Registers beans and properties for the Container
-
Method Details
-
destroy
void destroy()Called before removed from the configuration manager -
init
Initializes with the configuration- Parameters:
configuration
- The configuration- Throws:
ConfigurationException
- If anything goes wrong
-
needsReload
boolean needsReload()Tells whether the ContainerProvider should reload its configuration- Returns:
- true, whether the ContainerProvider should reload its configuration, falseotherwise.
-
register
Registers beans and properties for the Container- Parameters:
builder
- The builder to register beans withprops
- The properties to register constants with- Throws:
ConfigurationException
- If anything goes wrong
-