public class BindingFunctionBuilder extends Object implements Cloneable
Context and Binding methods into multiple
 BindingFunctions.| Modifier and Type | Class and Description | 
|---|---|
| static class  | BindingFunctionBuilder.RuleSetBindingFunctionBuilder generates three binding functions at separate
 priorities. | 
| Constructor and Description | 
|---|
| BindingFunctionBuilder()Create a new InjectorConfigurationBuilder that automatically generates bind rules for
 super and intermediate types. | 
| BindingFunctionBuilder(boolean generateRules)Create a new InjectorConfigurationBuilder. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDefaultExclusion(Class<?> type)Add a type to be excluded from when generating bind rules. | 
| void | applyModule(Module module)Run the module's  bind()method on the root
 context of this builder. | 
| BindingFunction | build(BindingFunctionBuilder.RuleSet set)Return the built BindingFunction for the given RuleSet. | 
| BindingFunctionBuilder | clone() | 
| boolean | getGenerateRules() | 
| Context | getRootContext() | 
| void | removeDefaultExclusion(Class<?> type)Remove a type that is currently being excluded. | 
public BindingFunctionBuilder()
public BindingFunctionBuilder(boolean generateRules)
generateRules - True if additional bind rules should be generatedpublic BindingFunctionBuilder clone()
public boolean getGenerateRules()
public Context getRootContext()
public void applyModule(Module module)
bind() method on the root
 context of this builder.module - The module to applypublic void addDefaultExclusion(Class<?> type)
type - The type to excludeNullPointerException - if type is nullpublic void removeDefaultExclusion(Class<?> type)
type - The type that should no longer be excludedNullPointerException - if type is nulladdDefaultExclusion(Class)public BindingFunction build(BindingFunctionBuilder.RuleSet set)
set - Copyright © 2016 GroupLens Research. All rights reserved.