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
.
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
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 classcom.google.inject.AbstractModule
-
newRepositorySystemSession
@Provides public org.eclipse.aether.RepositorySystemSession newRepositorySystemSession(org.eclipse.aether.RepositorySystem system)
-