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 characters
id - feature identity within an activation, at most128 ASCII identity characters (including binary-name $ and method separator #)
version - positive program contract version
attributes - immutable bounded configuration, at most32 entries of at most512 characters
methods - 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 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 kind
      id - activation-local feature identity
      version - positive contract version
      attributes - declarative configuration
      methods - exact callback allowlist
      Throws:
      IllegalArgumentException - for invalid identifiers, duplicates or capacity
      NullPointerException - for null members
  • Method Details

    • toString

      public String toString()
      Returns a diagnostic without application configuration or callback arguments.
      Specified by:
      toString in class Record
      Returns:
      fixed bounded feature identity and callback count
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      public String kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • version

      public int version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • attributes

      public Map<String,String> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • methods

      public List<ManagedMethod> methods()
      Returns the value of the methods record component.
      Returns:
      the value of the methods record component