com.atlassian.gadgets.directory.spi
Class ExternalGadgetSpec

java.lang.Object
  extended by com.atlassian.gadgets.directory.spi.ExternalGadgetSpec
All Implemented Interfaces:
Serializable

@Immutable
public final class ExternalGadgetSpec
extends Object
implements Serializable

Models an external gadget spec, which is simply a gadget spec hosted on a web server (as opposed to an internal gadget spec which is stored inside the plugin bundle).

Since:
2.0
See Also:
Serialized Form

Constructor Summary
ExternalGadgetSpec(ExternalGadgetSpecId id, URI specUri)
          Constructor.
 
Method Summary
 boolean equals(Object other)
           
 ExternalGadgetSpecId getId()
          Returns the ID of this ExternalGadgetSpec, guaranteed to be unique across the host application.
 URI getSpecUri()
          Returns the spec URI.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalGadgetSpec

public ExternalGadgetSpec(ExternalGadgetSpecId id,
                          URI specUri)
Constructor.

Parameters:
id - the ExternalGadgetSpecId to use for this object
specUri - the gadget spec URI
Throws:
IllegalArgumentException - if any parameter is null
Method Detail

getId

public ExternalGadgetSpecId getId()
Returns the ID of this ExternalGadgetSpec, guaranteed to be unique across the host application.

Returns:
the ID of this ExternalGadgetSpec

getSpecUri

public URI getSpecUri()
Returns the spec URI.

Returns:
the spec URI.

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011 Atlassian. All Rights Reserved.