com.atlassian.confluence.plugins.gadgets.refimpl
Class ExternalGadgetSpecIdGeneratorImpl
java.lang.Object
com.atlassian.confluence.plugins.gadgets.refimpl.ExternalGadgetSpecIdGeneratorImpl
- All Implemented Interfaces:
- ExternalGadgetSpecIdGenerator
public class ExternalGadgetSpecIdGeneratorImpl
- extends Object
- implements ExternalGadgetSpecIdGenerator
Reference implementation of ExternalGadgetSpecIdGenerator
. This
implementation stores the next available ID in the plugin settings,
incrementing and storing the new value on each call.
Method Summary |
com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId |
newExternalGadgetSpecId()
Creates and returns a new globally unique ID for an ExternalGadgetSpec . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalGadgetSpecIdGeneratorImpl
public ExternalGadgetSpecIdGeneratorImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
- Constructor.
- Parameters:
pluginSettingsFactory
- the PluginSettings
provider to use
for storing the keys
newExternalGadgetSpecId
public com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId newExternalGadgetSpecId()
- Description copied from interface:
ExternalGadgetSpecIdGenerator
- Creates and returns a new globally unique ID for an
ExternalGadgetSpec
.
- Specified by:
newExternalGadgetSpecId
in interface ExternalGadgetSpecIdGenerator
- Returns:
- the new unique ID
Copyright © 2003-2012 Atlassian. All Rights Reserved.