com.atlassian.gadgets.dashboard.spi
Interface GadgetStateFactory


public interface GadgetStateFactory

Constructs GadgetState instances for gadget spec URIs. Implementations must be safe to use concurrently from multiple threads.

Since:
2.0

Method Summary
 com.atlassian.gadgets.GadgetState createGadgetState(URI gadgetSpecUri)
          Constructs a new GadgetState instance for the specified gadget spec URI.
 

Method Detail

createGadgetState

com.atlassian.gadgets.GadgetState createGadgetState(URI gadgetSpecUri)
Constructs a new GadgetState instance for the specified gadget spec URI. The returned object is expected to always be a new instance, even if it has been called previously with the same gadget spec URI. The GadgetState.id field should have a value that is unique to that instance within the application. The application is free to customize the color of the gadget however it likes, or to use the default value provided by GadgetState.Builder.

Parameters:
gadgetSpecUri - the URI that the gadget spec file for the new gadget can be retrieved from
Returns:
a new GadgetState instance constructed from the specified spec URI


Copyright © 2013 Atlassian. All Rights Reserved.