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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Not used.voidCalled when the dispatcher is destroyedvoidCalled when the dispatcher is initializedvoidinit(Configuration configuration) Not used.voidLoads the packages using theActionConfigBuilder.booleanTells whether the ContainerProvider should reload its configurationvoidregister(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) Does nothing.voidsetDevMode(String mode) void
-
Constructor Details
-
ClasspathConfigurationProvider
-
-
Method Details
-
setDevMode
-
setReload
-
destroy
public void destroy()Not used.- Specified by:
destroyin interfaceContainerProvider
-
init
Not used.- Specified by:
initin interfaceContainerProvider- Specified by:
initin interfacePackageProvider- Parameters:
configuration- configuration
-
register
public void register(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) throws ConfigurationException Does nothing.- Specified by:
registerin interfaceContainerProvider- Parameters:
containerBuilder- container builderlocatableProperties- locatable properties- Throws:
ConfigurationException- in case of configuration errors
-
loadPackages
Loads the packages using theActionConfigBuilder.- Specified by:
loadPackagesin interfacePackageProvider- Throws:
ConfigurationException- in case of configuration errors
-
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 if devMode, reload and actionConfigBuilder.needsReload()
-
dispatcherInitialized
Description copied from interface:DispatcherListenerCalled when the dispatcher is initialized- Specified by:
dispatcherInitializedin interfaceDispatcherListener- Parameters:
du- The dispatcher instance
-
dispatcherDestroyed
Description copied from interface:DispatcherListenerCalled when the dispatcher is destroyed- Specified by:
dispatcherDestroyedin interfaceDispatcherListener- Parameters:
du- The dispatcher instance
-