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)
           
 GadgetSpec getGadgetSpec(URI uri, GadgetRequestContext gadgetRequestContext)
           
 
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
Specified by:
getGadgetSpec in interface GadgetSpecFactory
Throws:
GadgetParsingException

getGadgetSpec

public GadgetSpec getGadgetSpec(URI uri,
                                GadgetRequestContext gadgetRequestContext)
                         throws GadgetParsingException
Specified by:
getGadgetSpec in interface GadgetSpecFactory
Throws:
GadgetParsingException


Copyright © 2009 Atlassian. All Rights Reserved.