Interface ExtensionModule
- All Superinterfaces:
com.google.inject.Module
public interface ExtensionModule
extends com.google.inject.Module
Marks
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.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface com.google.inject.Module
configure