public interface ExtensionModule
extends com.google.inject.Module
Modules to be loaded when the world is assembled.
When an Injector is created from a ClassLoader,
any extensions that implement this interface will be instantiated
with the default constructor, and the module gets installed.
When we are assembling an injector (aka "world") from a set of jar files, those jar files can use this mechanism to insert more sophisticated bindings into the world.
This is a pseudo extension point, in the sense that it does not actually produce any binding inside the injector. Instead, it's instantiated while the injector is created, used, then thrown away.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExtensionModule.Loader |
Copyright © 2011-2013. All Rights Reserved.