org.apache.shindig.gadgets.config
Interface ConfigContributor

All Known Implementing Classes:
CoreUtilConfigContributor, OsapiServicesConfigContributor, ShindigAuthConfigContributor, XhrwrapperConfigContributor

public interface ConfigContributor

Interface used by java classes that can inject javascript configuration information

Since:
2.0.0

Method Summary
 void contribute(Map<String,Object> config, Gadget gadget)
          Contribute configuration values for a specific gadget in an iframe.
 void contribute(Map<String,Object> config, String container, String host)
          Contribute configuration for the container specific javascript.
 

Method Detail

contribute

void contribute(Map<String,Object> config,
                Gadget gadget)
Contribute configuration values for a specific gadget in an iframe.

Parameters:
config - The config mapping of feature to value.
gadget - The gadget to contribute for.

contribute

void contribute(Map<String,Object> config,
                String container,
                String host)
Contribute configuration for the container specific javascript. This interface should only support params used by JsServlet

Parameters:
config - The config to add to.
container - The container.
host - The hostname


Copyright © 2007-2012. All Rights Reserved.