org.apache.shindig.gadgets
Class DefaultGadgetSpecFactory
java.lang.Object
org.apache.shindig.gadgets.AbstractSpecFactory<GadgetSpec>
org.apache.shindig.gadgets.DefaultGadgetSpecFactory
- All Implemented Interfaces:
- GadgetSpecFactory
public class DefaultGadgetSpecFactory
- extends AbstractSpecFactory<GadgetSpec>
- implements GadgetSpecFactory
Default implementation of a gadget spec factory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_NAME
public static final String CACHE_NAME
- See Also:
- Constant Field Values
RAW_GADGETSPEC_XML_PARAM_NAME
public static final String RAW_GADGETSPEC_XML_PARAM_NAME
- See Also:
- Constant Field Values
DefaultGadgetSpecFactory
@Inject
public DefaultGadgetSpecFactory(ExecutorService executor,
RequestPipeline pipeline,
CacheProvider cacheProvider,
long refresh)
getGadgetSpec
public GadgetSpec getGadgetSpec(GadgetContext context)
throws GadgetException
- Description copied from interface:
GadgetSpecFactory
- Return a gadget spec for a context
- Specified by:
getGadgetSpec in interface GadgetSpecFactory
- Throws:
GadgetException
parse
protected GadgetSpec parse(String content,
AbstractSpecFactory.Query query)
throws XmlException,
GadgetException
- Description copied from class:
AbstractSpecFactory
- Parse and return a new spec object from the network.
- Specified by:
parse in class AbstractSpecFactory<GadgetSpec>
- Parameters:
content - the content located at specUriquery - same as was passed AbstractSpecFactory.getSpec(Query)
- Throws:
XmlException
GadgetException
Copyright © 2007-2012. All Rights Reserved.