Class DefaultMvnRepoLibraryJarFile
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultFileResource
org.jdrupes.builder.java.DefaultJarFile
org.jdrupes.builder.mvnrepo.DefaultMvnRepoLibraryJarFile
- All Implemented Interfaces:
FileResource, InputResource, IOResource, Proxyable, Resource, ZipFile, CodeContribution, JarFile, LibraryJarFile, MvnRepoJarFile, MvnRepoLibraryJarFile
The default implementation of a
MvnRepoLibraryJarFile.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMvnRepoLibraryJarFile(ResourceType<? extends LibraryJarFile> type, List<org.eclipse.aether.repository.RemoteRepository> repositories, String coordinates, Path path) Initializes a new instance with the given values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this code contribution is modular.Returns the Maven repository reference for this JAR file.List<org.eclipse.aether.repository.RemoteRepository> Returns the repositories used to resolve this JAR file.Methods inherited from class DefaultFileResource
asOf, equals, hashCode, inputStream, outputStream, pathMethods inherited from interface CodeContribution
moduleNameMethods inherited from interface FileResource
cleanup, pathMethods inherited from interface InputResource
inputStreamMethods inherited from interface IOResource
outputStreamMethods inherited from interface LibraryJarFile
toPathMethods inherited from interface Resource
asOf, asOfLocalized, isNewerThan, name, type
-
Constructor Details
-
DefaultMvnRepoLibraryJarFile
public DefaultMvnRepoLibraryJarFile(ResourceType<? extends LibraryJarFile> type, List<org.eclipse.aether.repository.RemoteRepository> repositories, String coordinates, Path path) Initializes a new instance with the given values.- Parameters:
type- the typerepositories- the repositoriescoordinates- the coordinatespath- the path
-
-
Method Details
-
isModular
Description copied from interface:CodeContributionChecks whether this code contribution is modular. This works for both JAR files and directories. Both are considered as modular if they contain amodule-info.class. JARs are also considered as modular if they have anAutomatic-Module-Nameset in theirMANIFEST.MF.- Specified by:
isModularin interfaceCodeContribution- Returns:
- true, if the contribution is modular
-
repositories
Description copied from interface:MvnRepoJarFileReturns the repositories used to resolve this JAR file.- Specified by:
repositoriesin interfaceMvnRepoJarFile- Returns:
- the repositories
-
reference
Description copied from interface:MvnRepoJarFileReturns the Maven repository reference for this JAR file.- Specified by:
referencein interfaceMvnRepoJarFile- Returns:
- the Maven repository resource
-