com.atlassian.studio.bamboo.build
Class BambooXworkOverrideConfigurationProvider

java.lang.Object
  extended by com.atlassian.studio.bamboo.build.BambooXworkOverrideConfigurationProvider
All Implemented Interfaces:
com.opensymphony.xwork2.config.ConfigurationProvider, com.opensymphony.xwork2.config.ContainerProvider, com.opensymphony.xwork2.config.PackageProvider, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class BambooXworkOverrideConfigurationProvider
extends Object
implements com.opensymphony.xwork2.config.ConfigurationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Overrides the XWork configuration in Bamboo


Constructor Summary
BambooXworkOverrideConfigurationProvider(com.atlassian.plugin.PluginAccessor pluginAccessor)
          Creates a new BambooXworkOverrideConfigurationProvider and adds it to the list of providers maintained by the ConfigurationManager.
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void init(com.opensymphony.xwork2.config.Configuration config)
           
 void loadPackages()
           
 boolean needsReload()
          Determines whether or not this OverrideConfigurationProvider needs to be reloaded.
 void register(com.opensymphony.xwork2.inject.ContainerBuilder containerBuilder, com.opensymphony.xwork2.util.location.LocatableProperties locatableProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooXworkOverrideConfigurationProvider

public BambooXworkOverrideConfigurationProvider(com.atlassian.plugin.PluginAccessor pluginAccessor)
Creates a new BambooXworkOverrideConfigurationProvider and adds it to the list of providers maintained by the ConfigurationManager.

Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

destroy

public void destroy()
Specified by:
destroy in interface com.opensymphony.xwork2.config.ContainerProvider
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean

register

public void register(com.opensymphony.xwork2.inject.ContainerBuilder containerBuilder,
                     com.opensymphony.xwork2.util.location.LocatableProperties locatableProperties)
              throws com.opensymphony.xwork2.config.ConfigurationException
Specified by:
register in interface com.opensymphony.xwork2.config.ContainerProvider
Throws:
com.opensymphony.xwork2.config.ConfigurationException

loadPackages

public void loadPackages()
                  throws com.opensymphony.xwork2.config.ConfigurationException
Specified by:
loadPackages in interface com.opensymphony.xwork2.config.PackageProvider
Throws:
com.opensymphony.xwork2.config.ConfigurationException

init

public void init(com.opensymphony.xwork2.config.Configuration config)
          throws com.opensymphony.xwork2.config.ConfigurationException
Specified by:
init in interface com.opensymphony.xwork2.config.ContainerProvider
Specified by:
init in interface com.opensymphony.xwork2.config.PackageProvider
Throws:
com.opensymphony.xwork2.config.ConfigurationException

needsReload

public boolean needsReload()
Determines whether or not this OverrideConfigurationProvider needs to be reloaded.

Specified by:
needsReload in interface com.opensymphony.xwork2.config.ContainerProvider
Specified by:
needsReload in interface com.opensymphony.xwork2.config.PackageProvider
Returns:
false if the current Configuration is the one that this was last loaded into, false otherwise


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.