Package org.apache.struts2.config
Class FileManagerProvider
java.lang.Object
org.apache.struts2.config.FileManagerProvider
- All Implemented Interfaces:
ContainerProvider
Allows to specify custom
FileManager
by user-
Constructor Summary
ConstructorDescriptionFileManagerProvider
(Class<? extends FileManager> fileManagerClass, String name) -
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
-
Constructor Details
-
FileManagerProvider
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:ContainerProvider
Called before removed from the configuration manager- Specified by:
destroy
in interfaceContainerProvider
-
init
Description copied from interface:ContainerProvider
Initializes with the configuration- Specified by:
init
in interfaceContainerProvider
- Parameters:
configuration
- The configuration- Throws:
ConfigurationException
- If anything goes wrong
-
needsReload
public boolean needsReload()Description copied from interface:ContainerProvider
Tells whether the ContainerProvider should reload its configuration- Specified by:
needsReload
in interfaceContainerProvider
- Returns:
- true, whether the ContainerProvider should reload its configuration, falseotherwise.
-
register
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException Description copied from interface:ContainerProvider
Registers beans and properties for the Container- Specified by:
register
in interfaceContainerProvider
- Parameters:
builder
- The builder to register beans withprops
- The properties to register constants with- Throws:
ConfigurationException
- If anything goes wrong
-