com.atlassian.jira.config.webwork
Class DelegatingConfiguration

java.lang.Object
  extended by com.atlassian.jira.config.webwork.DelegatingConfiguration
All Implemented Interfaces:
webwork.config.ConfigurationInterface

public class DelegatingConfiguration
extends Object
implements webwork.config.ConfigurationInterface

Simply delegates to another ConfigurationInterface but allows the ConfigurationInterface to be changed out for another one. This is used by the WebworkConfigurator to set a new ConfigurationInterface when the system is restarted. We need to do this to work around the check in the Configuration.setConfiguration() static method that disallows the ConfigurationInterface instance to be set to something different after it has been set once.

Since:
v3.13

Constructor Summary
DelegatingConfiguration()
           
DelegatingConfiguration(webwork.config.ConfigurationInterface delegate)
           
 
Method Summary
 Object getImpl(String name)
           
 Iterator listImpl()
           
 void setImpl(String name, Object impl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingConfiguration

public DelegatingConfiguration()

DelegatingConfiguration

public DelegatingConfiguration(webwork.config.ConfigurationInterface delegate)
Method Detail

getImpl

public Object getImpl(String name)
               throws IllegalArgumentException
Specified by:
getImpl in interface webwork.config.ConfigurationInterface
Throws:
IllegalArgumentException

setImpl

public void setImpl(String name,
                    Object impl)
             throws IllegalArgumentException,
                    UnsupportedOperationException
Specified by:
setImpl in interface webwork.config.ConfigurationInterface
Throws:
IllegalArgumentException
UnsupportedOperationException

listImpl

public Iterator listImpl()
Specified by:
listImpl in interface webwork.config.ConfigurationInterface


Copyright © 2002-2012 Atlassian. All Rights Reserved.