@Component(role=LegacySupport.class) public class DefaultLegacySupport extends java.lang.Object implements LegacySupport
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.ThreadLocal<java.util.concurrent.atomic.AtomicReference<MavenSession>> |
SESSION |
| Constructor and Description |
|---|
DefaultLegacySupport() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.aether.RepositorySystemSession |
getRepositorySession()
Gets the currently active repository session.
|
MavenSession |
getSession()
Gets the currently active session.
|
void |
setSession(MavenSession session)
Sets the currently active session.
|
private static final java.lang.ThreadLocal<java.util.concurrent.atomic.AtomicReference<MavenSession>> SESSION
public void setSession(MavenSession session)
LegacySupportsetSession in interface LegacySupportsession - The currently active session, may be null.public MavenSession getSession()
LegacySupportgetSession in interface LegacySupportnull if none.public org.eclipse.aether.RepositorySystemSession getRepositorySession()
LegacySupportgetRepositorySession in interface LegacySupportnull if none.