Record Class ManagedHostingOptions

java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedHostingOptions
Record Components:
bindings - finite immutable host integration registry
policies - ordered trusted policy factories; at most64, each claiming at most64 annotation types
probeSettings - bounded host-owned probe execution profile
invocationSettings - finite tracked invocation execution profile
hostedResources - finite trusted hosted feature backends, empty for ordinary hosting

public record ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings, ManagedInvocationSettings invocationSettings, ManagedHostedResources hostedResources) extends Record
Explicit immutable capabilities installed by trusted host setup, never by a bundle descriptor. Factories are borrowed host-owned thread-safe objects; per-activation bound values are owned.
  • Constructor Details

  • Method Details

    • installs

      public boolean installs(ManagedInvocationPolicy policy)
      Tests whether this immutable host configuration installs the actual policy instance. Only this class's private snapshots are unwrapped; application-controlled equals(), labels and annotation claims never substitute for the installed object. No policy binding is run.
      Parameters:
      policy - exact required host-owned policy, never null
      Returns:
      true only for the same underlying installation instance
      Throws:
      NullPointerException - for a missing required policy
    • defaults

      public static ManagedHostingOptions defaults()
      Returns a host profile with no optional policies or application-controlled bindings. The manager adds only its own safe current-context capability at activation.
      Returns:
      immutable default profile
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • bindings

      public ManagedHostBindings bindings()
      Returns the value of the bindings record component.
      Returns:
      the value of the bindings record component
    • policies

      public List<ManagedInvocationPolicy> policies()
      Returns the value of the policies record component.
      Returns:
      the value of the policies record component
    • probeSettings

      public ManagedProbeSettings probeSettings()
      Returns the value of the probeSettings record component.
      Returns:
      the value of the probeSettings record component
    • invocationSettings

      public ManagedInvocationSettings invocationSettings()
      Returns the value of the invocationSettings record component.
      Returns:
      the value of the invocationSettings record component
    • hostedResources

      public ManagedHostedResources hostedResources()
      Returns the value of the hostedResources record component.
      Returns:
      the value of the hostedResources record component