Record Class ApplicationManifest
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationManifest
- Record Components:
schemaVersion- manifest schema versionidentity- application identityminJ7mVersion- minimum J7M versionjavaVersion- required Java major versionmoduleMode- runtime module modebootstrapClass- bootstrapJ7mApplicationclassbootstrapModule- bootstrap module for JPMS modemodules- declared JPMS modulesservices- zero or more declared exported services; background-only applications still require a bootstrapsecurity- security metadataresources- resource metadata
public record ApplicationManifest(String schemaVersion, ApplicationIdentity identity, String minJ7mVersion, String javaVersion, String moduleMode, String bootstrapClass, String bootstrapModule, List<ApplicationManifest.ModuleDeclaration> modules, List<ApplicationManifest.ServiceDeclaration> services, ApplicationManifest.SecurityDeclaration security, ApplicationManifest.ResourceDeclaration resources)
extends Record
Immutable parsed application manifest.
The manifest is data only. Parsing and validation must not load or execute application code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordImmutable JPMS module declaration.static final recordImmutable resource declaration.static final recordImmutable security declaration.static final recordImmutable service declaration. -
Constructor Summary
ConstructorsConstructorDescriptionApplicationManifest(String schemaVersion, ApplicationIdentity identity, String minJ7mVersion, String javaVersion, String moduleMode, String bootstrapClass, String bootstrapModule, List<ApplicationManifest.ModuleDeclaration> modules, List<ApplicationManifest.ServiceDeclaration> services, ApplicationManifest.SecurityDeclaration security, ApplicationManifest.ResourceDeclaration resources) Creates immutable manifest data.ApplicationManifest(String schemaVersion, ApplicationIdentity identity, String minJ7mVersion, String javaVersion, String moduleMode, String bootstrapClass, List<ApplicationManifest.ServiceDeclaration> services, ApplicationManifest.SecurityDeclaration security, ApplicationManifest.ResourceDeclaration resources) Compatibility constructor for classpath-only manifests from the first application-platform slice. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapClassrecord component.Returns the value of thebootstrapModulerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of thejavaVersionrecord component.Returns the value of theminJ7mVersionrecord component.Returns the value of themoduleModerecord component.modules()Returns the value of themodulesrecord component.Returns the value of theresourcesrecord component.Returns the value of theschemaVersionrecord component.security()Returns the value of thesecurityrecord component.services()Returns the value of theservicesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationManifest
public ApplicationManifest(String schemaVersion, ApplicationIdentity identity, String minJ7mVersion, String javaVersion, String moduleMode, String bootstrapClass, String bootstrapModule, List<ApplicationManifest.ModuleDeclaration> modules, List<ApplicationManifest.ServiceDeclaration> services, ApplicationManifest.SecurityDeclaration security, ApplicationManifest.ResourceDeclaration resources) Creates immutable manifest data. -
ApplicationManifest
public ApplicationManifest(String schemaVersion, ApplicationIdentity identity, String minJ7mVersion, String javaVersion, String moduleMode, String bootstrapClass, List<ApplicationManifest.ServiceDeclaration> services, ApplicationManifest.SecurityDeclaration security, ApplicationManifest.ResourceDeclaration resources) Compatibility constructor for classpath-only manifests from the first application-platform slice.- Parameters:
schemaVersion- schema versionidentity- application identityminJ7mVersion- minimum J7M versionjavaVersion- Java versionmoduleMode- module modebootstrapClass- bootstrap classservices- declared servicessecurity- security metadataresources- resource metadata
-
-
Method Details
-
toString
-
hashCode
-
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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
identity
-
minJ7mVersion
Returns the value of theminJ7mVersionrecord component.- Returns:
- the value of the
minJ7mVersionrecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
moduleMode
Returns the value of themoduleModerecord component.- Returns:
- the value of the
moduleModerecord component
-
bootstrapClass
Returns the value of thebootstrapClassrecord component.- Returns:
- the value of the
bootstrapClassrecord component
-
bootstrapModule
Returns the value of thebootstrapModulerecord component.- Returns:
- the value of the
bootstrapModulerecord component
-
modules
-
services
-
security
-
resources
-