mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Baseline IrisApi draft before stage-graph redesign
This commit is contained in:
commit
9043d93fbd
91 files changed
+4045
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package com.volmit.host;
|
||||
|
||||
import com.volmit.FeatureAttachment;
|
||||
import com.volmit.IrisFeature;
|
||||
import com.volmit.config.OptionsMetadata;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import java.util.Objects;
|
||||
|
||||
/** Validated registration metadata. It describes configuration, not executable ordering. */
|
||||
public record FeatureDescriptor<F extends IrisFeature>(
|
||||
ResourceId id,
|
||||
String name,
|
||||
Class<F> type,
|
||||
FeatureAttachment attachment,
|
||||
OptionsMetadata options) {
|
||||
public FeatureDescriptor {
|
||||
Objects.requireNonNull(id, "id");
|
||||
Objects.requireNonNull(name, "name");
|
||||
if (name.isBlank()) {
|
||||
throw new IllegalArgumentException("Blank feature name");
|
||||
}
|
||||
Objects.requireNonNull(type, "type");
|
||||
Objects.requireNonNull(attachment, "attachment");
|
||||
Objects.requireNonNull(options, "options");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user