Class DefaultLibraryJarFile
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultFileResource
org.jdrupes.builder.java.DefaultJarFile
org.jdrupes.builder.java.DefaultLibraryJarFile
- All Implemented Interfaces:
FileResource, InputResource, IOResource, Proxyable, Resource, ZipFile, CodeContribution, JarFile, LibraryJarFile
A
FileResource that represents a Java library JAR.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultLibraryJarFile(ResourceType<? extends JarFile> type, Path path) Instantiates a new library jar file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this code contribution is modular.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
-
DefaultLibraryJarFile
Instantiates a new library jar file.- Parameters:
type- the resource typepath- 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
-