@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)
LegacySupport
setSession
in interface LegacySupport
session
- The currently active session, may be null
.public MavenSession getSession()
LegacySupport
getSession
in interface LegacySupport
null
if none.public org.eclipse.aether.RepositorySystemSession getRepositorySession()
LegacySupport
getRepositorySession
in interface LegacySupport
null
if none.