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 and Description |
---|
ClasspathConfigurationProvider(Container container) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Not used.
|
void |
dispatcherDestroyed(Dispatcher du) |
void |
dispatcherInitialized(Dispatcher du) |
void |
init(Configuration configuration)
Not used.
|
void |
loadPackages()
Loads the packages using the
ActionConfigBuilder . |
boolean |
needsReload() |
void |
register(ContainerBuilder containerBuilder,
LocatableProperties locatableProperties)
Does nothing.
|
void |
setDevMode(String mode) |
void |
setReload(String reload) |
public ClasspathConfigurationProvider(Container container)
public void setDevMode(String mode)
public void setReload(String reload)
public void destroy()
destroy
in interface ContainerProvider
public void init(Configuration configuration)
init
in interface ContainerProvider
init
in interface PackageProvider
configuration
- configurationpublic void register(ContainerBuilder containerBuilder, LocatableProperties locatableProperties) throws ConfigurationException
register
in interface ContainerProvider
containerBuilder
- container builderlocatableProperties
- locatable propertiesConfigurationException
- in case of configuration errorspublic void loadPackages() throws ConfigurationException
ActionConfigBuilder
.loadPackages
in interface PackageProvider
ConfigurationException
- in case of configuration errorspublic boolean needsReload()
needsReload
in interface ContainerProvider
needsReload
in interface PackageProvider
public void dispatcherInitialized(Dispatcher du)
dispatcherInitialized
in interface DispatcherListener
public void dispatcherDestroyed(Dispatcher du)
dispatcherDestroyed
in interface DispatcherListener
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.