Package com.atlassian.bamboo.webwork
Class BambooConfigurationProvider
java.lang.Object
com.atlassian.bamboo.webwork.BambooConfigurationProvider
- All Implemented Interfaces:
org.apache.struts2.config.ConfigurationProvider,org.apache.struts2.config.ContainerProvider,org.apache.struts2.config.PackageProvider
public class BambooConfigurationProvider
extends Object
implements org.apache.struts2.config.ConfigurationProvider
Struts 6 injects properties such as struts.multipart.saveDir and can overwrite explicit call to setter, but
if we add a configuration provider that sets the properties in the main struts config, it all works.
-
Field Details
-
INSTANCE
-
-
Method Details
-
init
public void init(org.apache.struts2.config.Configuration configuration) throws org.apache.struts2.config.ConfigurationException - Specified by:
initin interfaceorg.apache.struts2.config.ContainerProvider- Specified by:
initin interfaceorg.apache.struts2.config.PackageProvider- Throws:
org.apache.struts2.config.ConfigurationException
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.struts2.config.ContainerProvider
-
needsReload
public boolean needsReload()- Specified by:
needsReloadin interfaceorg.apache.struts2.config.ContainerProvider- Specified by:
needsReloadin interfaceorg.apache.struts2.config.PackageProvider
-
loadPackages
public void loadPackages() throws org.apache.struts2.config.ConfigurationException- Specified by:
loadPackagesin interfaceorg.apache.struts2.config.PackageProvider- Throws:
org.apache.struts2.config.ConfigurationException
-
register
public void register(org.apache.struts2.inject.ContainerBuilder builder, org.apache.struts2.util.location.LocatableProperties props) throws org.apache.struts2.config.ConfigurationException - Specified by:
registerin interfaceorg.apache.struts2.config.ContainerProvider- Throws:
org.apache.struts2.config.ConfigurationException
-