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.voidvoidvoidinit(Configuration configuration) Not used.voidLoads the packages using theActionConfigBuilder.booleanvoidregister(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()- Specified by:
needsReloadin interfaceContainerProvider- Specified by:
needsReloadin interfacePackageProvider- Returns:
- true if devMode, reload and actionConfigBuilder.needsReload()
-
dispatcherInitialized
- Specified by:
dispatcherInitializedin interfaceDispatcherListener
-
dispatcherDestroyed
- Specified by:
dispatcherDestroyedin interfaceDispatcherListener
-