Record Class ManagedHostedFeature
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ManagedHostedFeature
- Record Components:
kind- stable adapter kind, at most64 ASCII identifier charactersid- feature identity within an activation, at most128 ASCII identity characters (including binary-name $ and method separator #)version- positive program contract versionattributes- immutable bounded configuration, at most32 entries of at most512 charactersmethods- exact finite generated callback identities, at most16 distinct methods
public record ManagedHostedFeature(String kind, String id, int version, Map<String,String> attributes, List<ManagedMethod> methods)
extends Record
Finite generated declaration consumed only by an explicitly installed trusted host factory.
It grants no deployment, network, storage or authorization capability. Attributes are declarative
application input and must be validated by the selected factory before component construction.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedHostedFeature(String kind, String id, int version, Map<String, String> attributes, List<ManagedMethod> methods) Validates and copies the finite descriptor without executing application code. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.methods()Returns the value of themethodsrecord component.toString()Returns a diagnostic without application configuration or callback arguments.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ManagedHostedFeature
public ManagedHostedFeature(String kind, String id, int version, Map<String, String> attributes, List<ManagedMethod> methods) Validates and copies the finite descriptor without executing application code.- Parameters:
kind- host adapter kindid- activation-local feature identityversion- positive contract versionattributes- declarative configurationmethods- exact callback allowlist- Throws:
IllegalArgumentException- for invalid identifiers, duplicates or capacityNullPointerException- for null members
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
-
id
-
version
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
methods
-