|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.apache.shindig.gadgets.DefaultGuiceModule
public class DefaultGuiceModule
Creates a module to supply all of the core gadget classes. Instead of subclassing this consider adding features to the multibindings for features and rpc handlers.
| Field Summary | |
|---|---|
static ThreadFactory |
DAEMON_THREAD_FACTORY
|
| Constructor Summary | |
|---|---|
DefaultGuiceModule()
|
|
| Method Summary | |
|---|---|
protected void |
configure()
|
protected List<String> |
defaultFeatures(String features,
Set<String> extended)
Merges the features provided in shindig.properties with the extended features from multibinding |
protected void |
registerConfigContributors()
|
protected void |
registerFeatureHandlers()
Sets up the multibinding for extended feature resources |
protected void |
registerGadgetHandlers()
Sets up multibinding for rpc handlers |
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ThreadFactory DAEMON_THREAD_FACTORY
| Constructor Detail |
|---|
public DefaultGuiceModule()
| Method Detail |
|---|
protected void configure()
configure in class com.google.inject.AbstractModuleprotected void registerGadgetHandlers()
protected void registerConfigContributors()
protected void registerFeatureHandlers()
@Provides
protected List<String> defaultFeatures(String features,
Set<String> extended)
features - Comma separated string from shindig.properties key 'shindig.features.default'extended - Set of paths/resources from plugins
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||