com.atlassian.gadgets.renderer.internal
Class GadgetSpecFactoryImpl

java.lang.Object
  extended by com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl
All Implemented Interfaces:
GadgetSpecFactory

public class GadgetSpecFactoryImpl
extends Object
implements GadgetSpecFactory

Default implementation of GadgetSpecFactory.


Constructor Summary
GadgetSpecFactoryImpl(com.google.inject.Provider<com.google.inject.Injector> provider, com.atlassian.sal.api.ApplicationProperties applicationProperties)
          Constructor.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetSpecFactoryImpl

public GadgetSpecFactoryImpl(com.google.inject.Provider<com.google.inject.Injector> provider,
                             com.atlassian.sal.api.ApplicationProperties applicationProperties)
Constructor.

Parameters:
provider - the Guice provider that gives access to shindig objects
applicationProperties - the application properties to follow for gadget requests
Method Detail

getGadgetSpec

public GadgetSpec getGadgetSpec(GadgetState gadgetState,
                                GadgetRequestContext gadgetRequestContext)
                         throws GadgetParsingException
Description copied from interface: GadgetSpecFactory
Create a GadgetSpec from a GadgetState

Specified by:
getGadgetSpec in interface GadgetSpecFactory
Parameters:
gadgetState - the state to create a GadgetSpec from
gadgetRequestContext - the context of this request
Returns:
the created GadgetSpec
Throws:
GadgetParsingException

getGadgetSpec

public GadgetSpec getGadgetSpec(URI uri,
                                GadgetRequestContext gadgetRequestContext)
                         throws GadgetParsingException
Description copied from interface: GadgetSpecFactory
Create a GadgetSpec from a spec URI

Specified by:
getGadgetSpec in interface GadgetSpecFactory
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.