org.eclipse.aether.spi.connector.transport.TransporterFactory@Named("classpath")
public final class ClasspathTransporterFactory
extends java.lang.Object
implements org.eclipse.aether.spi.connector.transport.TransporterFactory
classpath: protocol. As example, getting an item named
some/file.txt from a repository with the URL classpath:/base/dir results in retrieving the resource
base/dir/some/file.txt from the classpath. The classpath to load the resources from is given via a
ClassLoader that can be configured via the configuration property CONFIG_PROP_CLASS_LOADER.
Note: Such repositories are read-only and uploads to them are generally not supported.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONFIG_PROP_CLASS_LOADER |
The key in the repository session's
configuration
properties used to store a ClassLoader from which resources should be retrieved. |
| Constructor | Description |
|---|---|
ClasspathTransporterFactory() |
Creates an (uninitialized) instance of this transporter factory.
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
getPriority() |
|
org.eclipse.aether.spi.connector.transport.Transporter |
newInstance(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.repository.RemoteRepository repository) |
|
ClasspathTransporterFactory |
setPriority(float priority) |
Sets the priority of this component.
|
public static final java.lang.String CONFIG_PROP_CLASS_LOADER
configuration
properties used to store a ClassLoader from which resources should be retrieved. If unspecified, the
context class loader of the current thread will be used.public ClasspathTransporterFactory()
public float getPriority()
getPriority in interface org.eclipse.aether.spi.connector.transport.TransporterFactorypublic ClasspathTransporterFactory setPriority(float priority)
priority - The priority.null.public org.eclipse.aether.spi.connector.transport.Transporter newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) throws org.eclipse.aether.transfer.NoTransporterException
newInstance in interface org.eclipse.aether.spi.connector.transport.TransporterFactoryorg.eclipse.aether.transfer.NoTransporterException