com.atlassian.sal.testresources.pluginsettings
Class MockPluginSettings

java.lang.Object
  extended by com.atlassian.sal.testresources.pluginsettings.MockPluginSettings
All Implemented Interfaces:
PluginSettings

public class MockPluginSettings
extends Object
implements PluginSettings


Constructor Summary
MockPluginSettings()
           
 
Method Summary
 Object get(String key)
          Gets a setting value.
 Object put(String key, Object value)
          Puts a setting value.
 Object remove(String key)
          Removes a setting value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPluginSettings

public MockPluginSettings()
Method Detail

get

public Object get(String key)
Description copied from interface: PluginSettings
Gets a setting value. The setting returned should be specific to this context settings object and not cascade the value to a global context.

Specified by:
get in interface PluginSettings
Parameters:
key - The setting key. Cannot be null
Returns:
The setting value. May be null

put

public Object put(String key,
                  Object value)
Description copied from interface: PluginSettings
Puts a setting value.

Specified by:
put in interface PluginSettings
Parameters:
key - Setting key. Cannot be null
value - Setting value. Must be one of String, List, Properties, Map, or null. null will remove the item from the settings.
Returns:
The setting value that was over ridden. Null if none existed.

remove

public Object remove(String key)
Description copied from interface: PluginSettings
Removes a setting value

Specified by:
remove in interface PluginSettings
Parameters:
key - The setting key
Returns:
The setting value that was removed. Null if nothing was removed.


Copyright © 2011 Atlassian. All Rights Reserved.