Package com.atlassian.gadgets.spec
Interface GadgetSpecFactory
public interface GadgetSpecFactory
Factory for creating
GadgetSpecs-
Method Summary
Modifier and TypeMethodDescriptiongetGadgetSpec(GadgetState gadgetState, GadgetRequestContext gadgetRequestContext) Create aGadgetSpecfrom aGadgetStategetGadgetSpec(URI uri, GadgetRequestContext gadgetRequestContext) Create aGadgetSpecfrom a specURI
-
Method Details
-
getGadgetSpec
GadgetSpec getGadgetSpec(GadgetState gadgetState, GadgetRequestContext gadgetRequestContext) throws GadgetParsingException Create aGadgetSpecfrom aGadgetState- Parameters:
gadgetState- the state to create aGadgetSpecfromgadgetRequestContext- the context of this request- Returns:
- the created
GadgetSpec - Throws:
GadgetParsingException
-
getGadgetSpec
GadgetSpec getGadgetSpec(URI uri, GadgetRequestContext gadgetRequestContext) throws GadgetParsingException Create aGadgetSpecfrom a specURI- Parameters:
uri- the spec uri to create aGadgetSpecfromgadgetRequestContext- the context of this request- Returns:
- the created
GadgetSpec - Throws:
GadgetParsingException
-