org.apache.shindig.gadgets.process
Class Processor

java.lang.Object
  extended by org.apache.shindig.gadgets.process.Processor

public class Processor
extends Object

Converts an input Context into an output Gadget.


Constructor Summary
Processor(GadgetSpecFactory gadgetSpecFactory, VariableSubstituter substituter, ContainerConfig containerConfig, GadgetBlacklist blacklist, FeatureRegistry featureRegistry)
           
 
Method Summary
 Gadget process(GadgetContext context)
          Process a single gadget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Processor

@Inject
public Processor(GadgetSpecFactory gadgetSpecFactory,
                        VariableSubstituter substituter,
                        ContainerConfig containerConfig,
                        GadgetBlacklist blacklist,
                        FeatureRegistry featureRegistry)
Method Detail

process

public Gadget process(GadgetContext context)
               throws ProcessingException
Process a single gadget. Creates a gadget from a retrieved GadgetSpec and context object, automatically performing variable substitution on the spec for use elsewhere.

Throws:
ProcessingException - If there is a problem processing the gadget.


Copyright © 2007-2012. All Rights Reserved.