Class 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.

    Here, we assemble a complete module by using AetherModule (see its Javadoc) and adding bits from Maven itself (binding those components that complete the repository system).

    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
      AetherModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure()  
      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 interface com.google.inject.Module

        configure
    • Constructor Detail

      • AetherModule

        public AetherModule()
    • Method Detail

      • configure

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

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