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 java.lang.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
 java.lang.Object getImpl(java.lang.String name)
           
 java.util.Iterator listImpl()
           
 void setImpl(java.lang.String name, java.lang.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 java.lang.Object getImpl(java.lang.String name)
                         throws java.lang.IllegalArgumentException
Specified by:
getImpl in interface webwork.config.ConfigurationInterface
Throws:
java.lang.IllegalArgumentException

setImpl

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

listImpl

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.