Package org.apache.struts2.convention
Class ClasspathConfigurationProvider
java.lang.Object
org.apache.struts2.convention.ClasspathConfigurationProvider
- All Implemented Interfaces:
org.apache.struts2.config.ConfigurationProvider,org.apache.struts2.config.ContainerProvider,org.apache.struts2.config.PackageProvider,org.apache.struts2.dispatcher.DispatcherListener
public class ClasspathConfigurationProvider
extends Object
implements org.apache.struts2.config.ConfigurationProvider, org.apache.struts2.dispatcher.DispatcherListener
Xwork will only reload configurations, if one ContainerProvider needs reloading, that's all this class does
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathConfigurationProvider(org.apache.struts2.inject.Container container) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Not used.voiddispatcherDestroyed(org.apache.struts2.dispatcher.Dispatcher du) voiddispatcherInitialized(org.apache.struts2.dispatcher.Dispatcher du) voidinit(org.apache.struts2.config.Configuration configuration) Not used.voidLoads the packages using theActionConfigBuilder.booleanvoidregister(org.apache.struts2.inject.ContainerBuilder containerBuilder, org.apache.struts2.util.location.LocatableProperties locatableProperties) Does nothing.voidsetDevMode(String mode) void
-
Constructor Details
-
ClasspathConfigurationProvider
public ClasspathConfigurationProvider(org.apache.struts2.inject.Container container)
-
-
Method Details
-
setDevMode
-
setReload
-
destroy
public void destroy()Not used.- Specified by:
destroyin interfaceorg.apache.struts2.config.ContainerProvider
-
init
public void init(org.apache.struts2.config.Configuration configuration) Not used.- Specified by:
initin interfaceorg.apache.struts2.config.ContainerProvider- Specified by:
initin interfaceorg.apache.struts2.config.PackageProvider- Parameters:
configuration- configuration
-
register
public void register(org.apache.struts2.inject.ContainerBuilder containerBuilder, org.apache.struts2.util.location.LocatableProperties locatableProperties) throws org.apache.struts2.config.ConfigurationException Does nothing.- Specified by:
registerin interfaceorg.apache.struts2.config.ContainerProvider- Parameters:
containerBuilder- container builderlocatableProperties- locatable properties- Throws:
org.apache.struts2.config.ConfigurationException- in case of configuration errors
-
loadPackages
public void loadPackages() throws org.apache.struts2.config.ConfigurationExceptionLoads the packages using theActionConfigBuilder.- Specified by:
loadPackagesin interfaceorg.apache.struts2.config.PackageProvider- Throws:
org.apache.struts2.config.ConfigurationException- in case of configuration errors
-
needsReload
public boolean needsReload()- Specified by:
needsReloadin interfaceorg.apache.struts2.config.ContainerProvider- Specified by:
needsReloadin interfaceorg.apache.struts2.config.PackageProvider- Returns:
- true if devMode, reload and actionConfigBuilder.needsReload()
-
dispatcherInitialized
public void dispatcherInitialized(org.apache.struts2.dispatcher.Dispatcher du) - Specified by:
dispatcherInitializedin interfaceorg.apache.struts2.dispatcher.DispatcherListener
-
dispatcherDestroyed
public void dispatcherDestroyed(org.apache.struts2.dispatcher.Dispatcher du) - Specified by:
dispatcherDestroyedin interfaceorg.apache.struts2.dispatcher.DispatcherListener
-