com.atlassian.gadgets.spec
Interface GadgetSpecFactory

All Known Implementing Classes:
GadgetSpecFactoryImpl

public interface GadgetSpecFactory

Factory for creating GadgetSpecs


Method Summary
 GadgetSpec getGadgetSpec(GadgetState gadgetState, GadgetRequestContext gadgetRequestContext)
          Create a GadgetSpec from a GadgetState
 GadgetSpec getGadgetSpec(URI uri, GadgetRequestContext gadgetRequestContext)
          Create a GadgetSpec from a spec URI
 

Method Detail

getGadgetSpec

GadgetSpec getGadgetSpec(GadgetState gadgetState,
                         GadgetRequestContext gadgetRequestContext)
                         throws GadgetParsingException
Create a GadgetSpec from a GadgetState

Parameters:
gadgetState - the state to create a GadgetSpec from
gadgetRequestContext - the context of this request
Returns:
the created GadgetSpec
Throws:
GadgetParsingException

getGadgetSpec

GadgetSpec getGadgetSpec(URI uri,
                         GadgetRequestContext gadgetRequestContext)
                         throws GadgetParsingException
Create a GadgetSpec from a spec URI

Parameters:
uri - the spec uri to create a GadgetSpec from
gadgetRequestContext - the context of this request
Returns:
the created GadgetSpec
Throws:
GadgetParsingException


Copyright © 2011 Atlassian. All Rights Reserved.