public class ExtensionFinder
extends com.google.inject.AbstractModule
Module that discovers ExtensionPoint implementations and registers them as binding.| Constructor and Description |
|---|
ExtensionFinder(ClassLoader cl) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
bind(Class<? extends T> impl,
Class<T> extensionPoint)
Allows the subtype to be selective about what to bind.
|
protected void |
configure() |
protected <T> ExtensionLoaderModule<T> |
createLoaderModule(Class<T> extensionPoint)
Creates a new instance of
ExtensionLoaderModule to be used to
load the extension of the given type. |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic ExtensionFinder(ClassLoader cl)
cl - ClassLoader to find extensions from.protected void configure()
configure in class com.google.inject.AbstractModuleprotected <T> void bind(Class<? extends T> impl, Class<T> extensionPoint)
protected <T> ExtensionLoaderModule<T> createLoaderModule(Class<T> extensionPoint)
ExtensionLoaderModule to be used to
load the extension of the given type.Copyright © 2011-2013. All Rights Reserved.