java.lang.Object
java.lang.Record
iu.type.ComponentArchive
- Record Components:
path- location of temporary file dedicated to this archivekind- component kind detected viaArchiveSourceversion- component version info read from the archiveproperties-META-INF/iu-type.propertieswhenIuComponent.Kind.isModular(), elseMETA-INF/iu.propertiesnonEnclosedTypeNames- all top-level classes, including those defined with package and protected encapsulation levelswebResources- all static web resources found in awebarchive, include those under WEB-INF/bundledDependencies- archive sources for all dependencies bundled (i.e. WEB-INF/lib/*.jar) with the archive
record ComponentArchive(Path path, IuComponent.Kind kind, ComponentVersion version, Properties properties, Set<String> nonEnclosedTypeNames, Map<String,byte[]> webResources, Collection<ArchiveSource> bundledDependencies)
extends Record
Reads a component archive and provides attributes necessary to realizing the
component's instance.
An archive represents a single element in the component's path
-
Constructor Summary
ConstructorsConstructorDescriptionComponentArchive(Path path, IuComponent.Kind kind, ComponentVersion version, Properties properties, Set<String> nonEnclosedTypeNames, Map<String, byte[]> webResources, Collection<ArchiveSource> bundledDependencies) Creates an instance of aComponentArchiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebundledDependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.(package private) static ComponentArchivefrom(ArchiveSource source) Reads a component archive from its source.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thenonEnclosedTypeNamesrecord component.path()Returns the value of thepathrecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of thewebResourcesrecord component.
-
Constructor Details
-
ComponentArchive
ComponentArchive(Path path, IuComponent.Kind kind, ComponentVersion version, Properties properties, Set<String> nonEnclosedTypeNames, Map<String, byte[]> webResources, Collection<ArchiveSource> bundledDependencies) Creates an instance of aComponentArchiverecord class.- Parameters:
path- the value for thepathrecord componentkind- the value for thekindrecord componentversion- the value for theversionrecord componentproperties- the value for thepropertiesrecord componentnonEnclosedTypeNames- the value for thenonEnclosedTypeNamesrecord componentwebResources- the value for thewebResourcesrecord componentbundledDependencies- the value for thebundledDependenciesrecord component
-
-
Method Details
-
from
Reads a component archive from its source.- Parameters:
source-ArchiveSource- Returns:
- archive-level component attributes
- Throws:
IOException- If an I/O error occurs reading from the source
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
nonEnclosedTypeNames
Returns the value of thenonEnclosedTypeNamesrecord component.- Returns:
- the value of the
nonEnclosedTypeNamesrecord component
-
webResources
Returns the value of thewebResourcesrecord component.- Returns:
- the value of the
webResourcesrecord component
-
bundledDependencies
Returns the value of thebundledDependenciesrecord component.- Returns:
- the value of the
bundledDependenciesrecord component
-