Interface InternalSession

All Superinterfaces:
ProtoSession, Session
All Known Subinterfaces:
InternalMavenSession
All Known Implementing Classes:
AbstractSession, DefaultSession

public interface InternalSession extends Session
  • Method Details

    • from

      static InternalSession from(Session session)
    • from

      static InternalSession from(org.eclipse.aether.RepositorySystemSession session)
    • associate

      static void associate(org.eclipse.aether.RepositorySystemSession rsession, Session session)
    • request

      <REQ extends Request<?>, REP extends Result<REQ>> REP request(REQ req, Function<REQ,REP> supplier)
      Executes and optionally caches a request using the provided supplier function. If caching is enabled for this session, the result will be cached and subsequent identical requests will return the cached value without re-executing the supplier.
      Type Parameters:
      REQ - The request type
      REP - The response type
      Parameters:
      req - The request object used as the cache key
      supplier - The function to execute and cache the result
      Returns:
      The result from the supplier (either fresh or cached)
      Throws:
      RuntimeException - Any exception thrown by the supplier will be cached and re-thrown on subsequent calls
    • requests

      <REQ extends Request<?>, REP extends Result<REQ>> List<REP> requests(List<REQ> req, Function<List<REQ>,List<REP>> supplier)
    • getRemoteRepository

      RemoteRepository getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository)
    • getLocalRepository

      LocalRepository getLocalRepository(org.eclipse.aether.repository.LocalRepository repository)
    • getWorkspaceRepository

      WorkspaceRepository getWorkspaceRepository(org.eclipse.aether.repository.WorkspaceRepository repository)
    • getRepository

      Repository getRepository(org.eclipse.aether.repository.ArtifactRepository repository)
    • getNode

      Node getNode(org.eclipse.aether.graph.DependencyNode node)
    • getNode

      Node getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose)
    • getArtifact

      @Nonnull Artifact getArtifact(@Nonnull org.eclipse.aether.artifact.Artifact artifact)
    • getArtifact

      @Nonnull <T extends Artifact> T getArtifact(@Nonnull Class<T> clazz, @Nonnull org.eclipse.aether.artifact.Artifact artifact)
    • getDependency

      @Nonnull Dependency getDependency(@Nonnull org.eclipse.aether.graph.Dependency dependency)
    • toRepositories

      List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories)
    • toRepository

      org.eclipse.aether.repository.RemoteRepository toRepository(RemoteRepository repository)
    • toRepository

      org.eclipse.aether.repository.LocalRepository toRepository(LocalRepository repository)
    • toDependencies

      List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinates> dependencies, boolean managed)
    • toDependency

      org.eclipse.aether.graph.Dependency toDependency(DependencyCoordinates dependency, boolean managed)
    • toArtifacts

      List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<? extends Artifact> artifacts)
    • toArtifact

      org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact)
    • toArtifact

      org.eclipse.aether.artifact.Artifact toArtifact(ArtifactCoordinates coords)
    • getSession

      org.eclipse.aether.RepositorySystemSession getSession()
    • getRepositorySystem

      org.eclipse.aether.RepositorySystem getRepositorySystem()
    • setCurrentTrace

      void setCurrentTrace(@Nullable RequestTrace trace)
      Sets the current request trace for the session. The request trace provides contextual information about the current operation being performed and can be used for debugging and monitoring purposes. The trace is stored in thread-local storage, allowing for concurrent operations with different traces.
      Parameters:
      trace - the trace to set as current, may be null to clear the trace
      See Also:
    • getCurrentTrace

      RequestTrace getCurrentTrace()
      Gets the current request trace for the session from thread-local storage. Each thread maintains its own trace context, ensuring thread-safety for concurrent operations.
      Returns:
      the current request trace, or null if no trace is set
      See Also: