Record Class ManifestEntry
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ManifestEntry
- Record Components:
dest- destination path the entry installs at. May use"~/"prefix forScaffoldScope.USERentries. Must be non-blank.scope- dispatch scope; nevernulltier- ownership tier; nevernullsource- path inside the scaffold zip for file-based tiers;nullforScaffoldTier.MODEL_MANAGEDmodel- adapter name forScaffoldTier.MODEL_MANAGEDentries (e.g."maven-settings-4");nullfor file-based tiersextras- adapter-specific raw configuration (e.g.ensure,never-touch,block-begin,block-end,create-source); nevernull(use empty map). Stored map is unmodifiable.
public record ManifestEntry(String dest, ScaffoldScope scope, ScaffoldTier tier, String source, String model, Map<String,Object> extras)
extends Record
One file's entry in a scaffold manifest.
The manifest is shipped by ike-build-standards (see #222)
and describes every file the scaffold mojo family knows how to
install, replace, or manage. Each entry pins a destination path, a
scope (PROJECT or
USER), and a tier
policy.
For file-based tiers
(TOOL_OWNED,
TRACKED,
TRACKED_BLOCK) the source
field names the template inside the scaffold zip. For
MODEL_MANAGED entries,
source is null and model selects an adapter by
name; adapter-specific configuration is carried in the opaque
extras map so the scaffold core can stay algorithm-agnostic.
-
Constructor Summary
ConstructorsConstructorDescriptionManifestEntry(String dest, ScaffoldScope scope, ScaffoldTier tier, String source, String model, Map<String, Object> extras) Canonical constructor with validation and defensive copying. -
Method Summary
Modifier and TypeMethodDescriptiondest()Returns the value of thedestrecord component.final booleanIndicates whether some other object is "equal to" this one.extras()Returns the value of theextrasrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.scope()Returns the value of thescoperecord component.source()Returns the value of thesourcerecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManifestEntry
public ManifestEntry(String dest, ScaffoldScope scope, ScaffoldTier tier, String source, String model, Map<String, Object> extras) Canonical constructor with validation and defensive copying.
-
-
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). -
dest
-
scope
-
tier
-
source
-
model
-
extras
-