com.atlassian.gadgets.refimpl
Class NamespacedPluginSettings

java.lang.Object
  extended by com.atlassian.gadgets.refimpl.NamespacedPluginSettings
All Implemented Interfaces:
com.atlassian.sal.api.pluginsettings.PluginSettings

public class NamespacedPluginSettings
extends Object
implements com.atlassian.sal.api.pluginsettings.PluginSettings

Simple decorator that prepends a key namespace to a global PluginSettings.


Constructor Summary
NamespacedPluginSettings(com.atlassian.sal.api.pluginsettings.PluginSettings pluginSettings, String keyPrefix)
          Constructor.
 
Method Summary
 Object get(String s)
           
 Object put(String s, Object o)
           
 Object remove(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespacedPluginSettings

public NamespacedPluginSettings(com.atlassian.sal.api.pluginsettings.PluginSettings pluginSettings,
                                String keyPrefix)
Constructor.

Parameters:
pluginSettings - the PluginSettings implementation to use
keyPrefix - the namespace prefix to use
Method Detail

get

public Object get(String s)
Specified by:
get in interface com.atlassian.sal.api.pluginsettings.PluginSettings

put

public Object put(String s,
                  Object o)
Specified by:
put in interface com.atlassian.sal.api.pluginsettings.PluginSettings

remove

public Object remove(String s)
Specified by:
remove in interface com.atlassian.sal.api.pluginsettings.PluginSettings


Copyright © 2011 Atlassian. All Rights Reserved.