org.apache.shindig.gadgets.config
Class OsapiServicesConfigContributor
java.lang.Object
org.apache.shindig.gadgets.config.OsapiServicesConfigContributor
- All Implemented Interfaces:
- ConfigContributor
public class OsapiServicesConfigContributor
- extends Object
- implements ConfigContributor
Populates the osapi.services configuration, which includes
the osapi endpoints this container supports.
TODO osapi.services as a configuration parameter does not
match a specific feature. It would be better to store this as
'osapi:{services: {...}}}
- Since:
- 2.0.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rpcServiceLookup
protected final RpcServiceLookup rpcServiceLookup
OsapiServicesConfigContributor
@Inject
public OsapiServicesConfigContributor(RpcServiceLookup rpcServiceLookup)
contribute
public void contribute(Map<String,Object> config,
Gadget gadget)
- Contribute configuration values for a specific gadget in an iframe.
- Specified by:
contribute in interface ConfigContributor
- Parameters:
config - The config mapping of feature to value.gadget - The gadget to contribute for.
contribute
public 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
- Specified by:
contribute in interface ConfigContributor
- Parameters:
config - The config to add to.container - The container.host - The hostname
Copyright © 2007-2012. All Rights Reserved.