Class AetherModule

java.lang.Object
com.google.inject.AbstractModule
org.jenkinsci.test.acceptance.utils.aether.AetherModule
All Implemented Interfaces:
com.cloudbees.sdk.extensibility.ExtensionModule, com.google.inject.Module

public class AetherModule extends com.google.inject.AbstractModule implements com.cloudbees.sdk.extensibility.ExtensionModule
Hook up Aether resolver.

To resolve components, inject RepositorySystem and RepositorySystemSession.

Author:
Kohsuke Kawaguchi
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.cloudbees.sdk.extensibility.ExtensionModule

    com.cloudbees.sdk.extensibility.ExtensionModule.Loader
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    org.eclipse.aether.RepositorySystem
     
    org.eclipse.aether.RepositorySystemSession
    newRepositorySystemSession(org.eclipse.aether.RepositorySystem system)
     

    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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.inject.Module

    configure
  • Constructor Details

    • AetherModule

      public AetherModule()
  • Method Details

    • configure

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

      @Provides public org.eclipse.aether.RepositorySystem newRepositorySystem()
    • newRepositorySystemSession

      @Provides public org.eclipse.aether.RepositorySystemSession newRepositorySystemSession(org.eclipse.aether.RepositorySystem system)