Record Class ManagedHostingOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedHostingOptions
- Record Components:
bindings- finite immutable host integration registrypolicies- ordered trusted policy factories; at most64, each claiming at most64 annotation typesprobeSettings- bounded host-owned probe execution profileinvocationSettings- finite tracked invocation execution profilehostedResources- 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 Summary
ConstructorsConstructorDescriptionManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies) Preserves the default development-qualified probe profile.ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings) Preserves the default invocation capacity for an existing probe profile.ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings, ManagedInvocationSettings invocationSettings) Preserves ordinary hosting for an existing invocation execution profile.ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings, ManagedInvocationSettings invocationSettings, ManagedHostedResources hostedResources) Validates a bounded unambiguous capability inventory without binding application classes. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.static ManagedHostingOptionsdefaults()Returns a host profile with no optional policies or application-controlled bindings.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehostedResourcesrecord component.booleaninstalls(ManagedInvocationPolicy policy) Tests whether this immutable host configuration installs the actual policy instance.Returns the value of theinvocationSettingsrecord component.policies()Returns the value of thepoliciesrecord component.Returns the value of theprobeSettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManagedHostingOptions
public ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings, ManagedInvocationSettings invocationSettings) Preserves ordinary hosting for an existing invocation execution profile.- Parameters:
bindings- trusted dependency bindingspolicies- trusted invocation policiesprobeSettings- bounded probe profileinvocationSettings- bounded invocation profile
-
ManagedHostingOptions
public ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings) Preserves the default invocation capacity for an existing probe profile.- Parameters:
bindings- trusted bindingspolicies- trusted policiesprobeSettings- bounded probe profile
-
ManagedHostingOptions
Preserves the default development-qualified probe profile.- Parameters:
bindings- trusted bindingspolicies- trusted policies
-
ManagedHostingOptions
public ManagedHostingOptions(ManagedHostBindings bindings, List<ManagedInvocationPolicy> policies, ManagedProbeSettings probeSettings, ManagedInvocationSettings invocationSettings, ManagedHostedResources hostedResources) Validates a bounded unambiguous capability inventory without binding application classes.- Parameters:
bindings- explicit registry, never nullpolicies- explicit immutable policy snapshotprobeSettings- bounded host-owned sampling profileinvocationSettings- finite tracked invocation profile- Throws:
IllegalArgumentException- for excessive or duplicate annotation capabilitiesNullPointerException- for null input or factory
-
-
Method Details
-
installs
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
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
-
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). -
bindings
-
policies
-
probeSettings
Returns the value of theprobeSettingsrecord component.- Returns:
- the value of the
probeSettingsrecord component
-
invocationSettings
Returns the value of theinvocationSettingsrecord component.- Returns:
- the value of the
invocationSettingsrecord component
-
hostedResources
Returns the value of thehostedResourcesrecord component.- Returns:
- the value of the
hostedResourcesrecord component
-