Record Class AdapterCapabilityDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.spi.AdapterCapabilityDescriptor
- Record Components:
adapterId- stable adapter identifieradapterVersion- adapter implementation versiontype- J7M service familysupportedProfiles- semantic profiles the adapter claims to supportcapabilities- declared capability levelsunsupportedSemantics- explicitly unsupported semanticssecurityProfile- declared security behaviorresourceProfile- safe resource profile summaryfailureModes- failure modes the adapter can surface safelyknownLimitations- safe limitation descriptionstckVersion- TCK version used by the latest known reportcompatibilityLevel- latest declared compatibility level
public record AdapterCapabilityDescriptor(AdapterProviderId adapterId, String adapterVersion, AdapterType type, Set<AdapterSemanticProfile> supportedProfiles, Map<AdapterCapability, AdapterCapabilityLevel> capabilities, Set<AdapterCapability> unsupportedSemantics, AdapterSecurityProfile securityProfile, AdapterResourceProfile resourceProfile, Set<AdapterFailureMode> failureModes, List<String> knownLimitations, String tckVersion, AdapterCompatibilityLevel compatibilityLevel)
extends Record
Immutable capability declaration for an optional adapter provider.
The descriptor is thread-safe and safe to publish. It is an input to TCK evaluation, not proof by itself. The TCK compares declared capabilities with executed scenarios and rejects adapters that claim stronger semantics than they prove. Descriptors must not contain credential values, raw endpoints, or vendor-specific public API shapes.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterCapabilityDescriptor(AdapterProviderId adapterId, String adapterVersion, AdapterType type, Set<AdapterSemanticProfile> supportedProfiles, Map<AdapterCapability, AdapterCapabilityLevel> capabilities, Set<AdapterCapability> unsupportedSemantics, AdapterSecurityProfile securityProfile, AdapterResourceProfile resourceProfile, Set<AdapterFailureMode> failureModes, List<String> knownLimitations, String tckVersion, AdapterCompatibilityLevel compatibilityLevel) Creates an adapter capability descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterIdrecord component.Returns the value of theadapterVersionrecord component.Returns the value of thecapabilitiesrecord component.booleanclaims(AdapterCapability capability) Returns whether the descriptor claims the capability must work.Returns the value of thecompatibilityLevelrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureModesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theknownLimitationsrecord component.levelFor(AdapterCapability capability) Returns the declared level for a capability.Returns the value of theresourceProfilerecord component.Returns the value of thesecurityProfilerecord component.Returns the value of thesupportedProfilesrecord component.booleansupportsRequired(AdapterSemanticProfile profile) Returns whether all required semantics for a profile are declared as supported.Returns the value of thetckVersionrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theunsupportedSemanticsrecord component.
-
Constructor Details
-
AdapterCapabilityDescriptor
public AdapterCapabilityDescriptor(AdapterProviderId adapterId, String adapterVersion, AdapterType type, Set<AdapterSemanticProfile> supportedProfiles, Map<AdapterCapability, AdapterCapabilityLevel> capabilities, Set<AdapterCapability> unsupportedSemantics, AdapterSecurityProfile securityProfile, AdapterResourceProfile resourceProfile, Set<AdapterFailureMode> failureModes, List<String> knownLimitations, String tckVersion, AdapterCompatibilityLevel compatibilityLevel) Creates an adapter capability descriptor.
-
-
Method Details
-
levelFor
Returns the declared level for a capability.- Parameters:
capability- capability to inspect- Returns:
- declared level, or
AdapterCapabilityLevel.UNSUPPORTEDwhen absent
-
claims
Returns whether the descriptor claims the capability must work.- Parameters:
capability- capability to inspect- Returns:
truewhen the capability is required or claimed
-
supportsRequired
Returns whether all required semantics for a profile are declared as supported.- Parameters:
profile- semantic profile to check- Returns:
truewhen every required capability is claimed or required
-
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). -
adapterId
-
adapterVersion
Returns the value of theadapterVersionrecord component.- Returns:
- the value of the
adapterVersionrecord component
-
type
-
supportedProfiles
Returns the value of thesupportedProfilesrecord component.- Returns:
- the value of the
supportedProfilesrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
unsupportedSemantics
Returns the value of theunsupportedSemanticsrecord component.- Returns:
- the value of the
unsupportedSemanticsrecord component
-
securityProfile
Returns the value of thesecurityProfilerecord component.- Returns:
- the value of the
securityProfilerecord component
-
resourceProfile
Returns the value of theresourceProfilerecord component.- Returns:
- the value of the
resourceProfilerecord component
-
failureModes
Returns the value of thefailureModesrecord component.- Returns:
- the value of the
failureModesrecord component
-
knownLimitations
Returns the value of theknownLimitationsrecord component.- Returns:
- the value of the
knownLimitationsrecord component
-
tckVersion
Returns the value of thetckVersionrecord component.- Returns:
- the value of the
tckVersionrecord component
-
compatibilityLevel
Returns the value of thecompatibilityLevelrecord component.- Returns:
- the value of the
compatibilityLevelrecord component
-