Package com.cloudbees.sdk.extensibility
Class ExtensionFinder
java.lang.Object
com.google.inject.AbstractModule
com.cloudbees.sdk.extensibility.ExtensionFinder
- All Implemented Interfaces:
com.google.inject.Module
public class ExtensionFinder
extends com.google.inject.AbstractModule
Guice
Module that discovers ExtensionPoint implementations and registers them as binding.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> voidAllows the subtype to be selective about what to bind.protected voidprotected <T> ExtensionLoaderModule<T>createLoaderModule(Class<T> extensionPoint) Creates a new instance ofExtensionLoaderModuleto be used to load the extension of the given type.Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ExtensionFinder
- Parameters:
cl- ClassLoader to find extensions from.
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classcom.google.inject.AbstractModule
-
bind
Allows the subtype to be selective about what to bind. -
createLoaderModule
Creates a new instance ofExtensionLoaderModuleto be used to load the extension of the given type.
-