org.apache.shindig.gadgets.variables
Class VariableSubstituter

java.lang.Object
  extended by org.apache.shindig.gadgets.variables.VariableSubstituter

public class VariableSubstituter
extends Object

Performs variable substitution on a gadget spec.


Constructor Summary
VariableSubstituter(List<Substituter> substituters)
           
 
Method Summary
 GadgetSpec substitute(GadgetContext context, GadgetSpec spec)
          Substitutes all hangman variables into the gadget spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableSubstituter

@Inject
public VariableSubstituter(List<Substituter> substituters)
Method Detail

substitute

public GadgetSpec substitute(GadgetContext context,
                             GadgetSpec spec)
                      throws GadgetException
Substitutes all hangman variables into the gadget spec.

Returns:
A new GadgetSpec, with all fields substituted as needed.
Throws:
GadgetException


Copyright © 2007-2012. All Rights Reserved.