Package org.apache.struts2.convention
Class ClasspathConfigurationProvider
java.lang.Object
org.apache.struts2.convention.ClasspathConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider
,ContainerProvider
,PackageProvider
,DispatcherListener
public class ClasspathConfigurationProvider
extends Object
implements ConfigurationProvider, DispatcherListener
Xwork will only reload configurations, if one ContainerProvider needs reloading, that's all this class does
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Not used.void
void
void
init
(Configuration configuration) Not used.void
Loads the packages using theActionConfigBuilder
.boolean
void
register
(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) Does nothing.void
setDevMode
(String mode) void
-
Constructor Details
-
ClasspathConfigurationProvider
-
-
Method Details
-
setDevMode
-
setReload
-
destroy
public void destroy()Not used.- Specified by:
destroy
in interfaceContainerProvider
-
init
Not used.- Specified by:
init
in interfaceContainerProvider
- Specified by:
init
in interfacePackageProvider
- Parameters:
configuration
- configuration
-
register
public void register(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) throws ConfigurationException Does nothing.- Specified by:
register
in interfaceContainerProvider
- Parameters:
containerBuilder
- container builderlocatableProperties
- locatable properties- Throws:
ConfigurationException
- in case of configuration errors
-
loadPackages
Loads the packages using theActionConfigBuilder
.- Specified by:
loadPackages
in interfacePackageProvider
- Throws:
ConfigurationException
- in case of configuration errors
-
needsReload
public boolean needsReload()- Specified by:
needsReload
in interfaceContainerProvider
- Specified by:
needsReload
in interfacePackageProvider
- Returns:
- true if devMode, reload and actionConfigBuilder.needsReload()
-
dispatcherInitialized
- Specified by:
dispatcherInitialized
in interfaceDispatcherListener
-
dispatcherDestroyed
- Specified by:
dispatcherDestroyed
in interfaceDispatcherListener
-