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 SummaryConstructors
- 
Method SummaryModifier 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
- 
destroypublic void destroy()Not used.- Specified by:
- destroyin interface- ContainerProvider
 
- 
initNot used.- Specified by:
- initin interface- ContainerProvider
- Specified by:
- initin interface- PackageProvider
- Parameters:
- configuration- configuration
 
- 
registerpublic void register(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) throws ConfigurationException Does nothing.- Specified by:
- registerin interface- ContainerProvider
- Parameters:
- containerBuilder- container builder
- locatableProperties- locatable properties
- Throws:
- ConfigurationException- in case of configuration errors
 
- 
loadPackagesLoads the packages using theActionConfigBuilder.- Specified by:
- loadPackagesin interface- PackageProvider
- Throws:
- ConfigurationException- in case of configuration errors
 
- 
needsReloadpublic boolean needsReload()- Specified by:
- needsReloadin interface- ContainerProvider
- Specified by:
- needsReloadin interface- PackageProvider
- Returns:
- true if devMode, reload and actionConfigBuilder.needsReload()
 
- 
dispatcherInitialized- Specified by:
- dispatcherInitializedin interface- DispatcherListener
 
- 
dispatcherDestroyed- Specified by:
- dispatcherDestroyedin interface- DispatcherListener
 
 
-