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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T> void
    bind(Class<? extends T> impl, Class<T> extensionPoint)
    Allows the subtype to be selective about what to bind.
    protected void
     
    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.

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExtensionFinder

      public ExtensionFinder(ClassLoader cl)
      Parameters:
      cl - ClassLoader to find extensions from.
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule
    • bind

      protected <T> void bind(Class<? extends T> impl, Class<T> extensionPoint)
      Allows the subtype to be selective about what to bind.
    • createLoaderModule

      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.