module, provides the module class name, the parent module source, and the call stack that ends just before the module configure(Binder) method invocation.
| Modifier and Type | Field and Description |
|---|---|
| private final String | moduleClassName
The class name of module that this |
| private final ModuleSource | parent
The parent |
| private final BindingSourceRestriction. | permitMap
Permit map created by the binder that installed this module. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ModuleSource(Class<?>
the corresponding module moduleClass, BindingSourceRestriction.Creates a new |
| private | ModuleSource(ModuleSource
the parent module parent, Class<?> sourcethe corresponding module moduleClass, BindingSourceRestriction.the chunk of call stack that starts from the parent module permitMapconfigure(Binder) call and ends just before the module configure(Binder) method invocationCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ModuleSource | createChild(Class<?>
the corresponding module moduleClass)Creates and returns a child |
| pack-priv String | |
| pack-priv List | |
| pack-priv ModuleSource | |
| pack-priv BindingSourceRestriction. | |
| pack-priv int |
| moduleClassName | back to summary |
|---|---|
| private final String moduleClassName The class name of module that this | |
| parent | back to summary |
|---|---|
| private final ModuleSource parent The parent | |
| permitMap | back to summary |
|---|---|
| private final BindingSourceRestriction. Permit map created by the binder that installed this module. The permit map is a binder-scoped object, but it's saved here because these maps have to outlive the binders that created them in order to be used at injector creation, and there isn't a 'BinderSource' object. | |
| ModuleSource | back to summary |
|---|---|
| pack-priv ModuleSource(Class<?> moduleClass, BindingSourceRestriction. Creates a new
| |
| ModuleSource | back to summary |
|---|---|
| private ModuleSource(ModuleSource parent, Class<?> moduleClass, BindingSourceRestriction. Creates a new
| |
| createChild | back to summary |
|---|---|
| pack-priv ModuleSource createChild(Class<?> moduleClass) Creates and returns a child
| |
| getModuleClassName | back to summary |
|---|---|
| pack-priv String getModuleClassName() Returns the corresponding module class name.
| |
| getModuleClassNames | back to summary |
|---|---|
| pack-priv List Returns the class names of modules in this module source. The first element (index 0) is filled
by this object | |
| getParent | back to summary |
|---|---|
| pack-priv ModuleSource getParent() Returns the parent module | |
| getPermitMap | back to summary |
|---|---|
| pack-priv BindingSourceRestriction. Returns the permit map created by the binder that installed this module. | |
| size | back to summary |
|---|---|
| pack-priv int size() Returns the size of | |