Class ManagedHostedResources
java.lang.Object
org.j7m.middleware.application.components.ManagedHostedResources
Immutable trusted host registry for finite generated hosted features.
Application descriptors cannot install factories or choose authority. Factories and their fixed
worker identities are borrowed from host setup; each bound lifecycle is activation-owned.
No component constructor may run until every declared feature has passed factory validation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceOne owned backend lifecycle.static final recordVerified immutable program identity; no field is an application authorization assertion.static final recordBorrowed trusted factory and immutable worker authority, never copied from application metadata.static interfaceFinite backend adapter installed by trusted host setup, never by an application provider.static interfaceFixed-authority invocation handle retained only by a trusted bound factory. -
Constructor Summary
ConstructorsConstructorDescriptionCopies a finite unambiguous host registry. -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends Annotation>> Returns the finite capabilities of explicitly installed backend factories.booleanbackendOnly(String kind) Tests the exact installed invocation-free capability, without a descriptor fallback.static ManagedHostedResourcesempty()Returns an empty opt-in registry preserving ordinary managed hosting behavior.Selects a previously installed capability; no application fallback or discovery occurs.requiredPolicies(String kind) Returns immutable actual policy identities captured from trusted setup.booleanReturns whether a trusted capability is installed without invoking its factory.
-
Constructor Details
-
ManagedHostedResources
Copies a finite unambiguous host registry.- Parameters:
entries- adapter kind to trusted factory/profile, at most64- Throws:
IllegalArgumentException- for malformed kinds or capacityNullPointerException- for null keys or values
-
-
Method Details
-
require
Selects a previously installed capability; no application fallback or discovery occurs.- Parameters:
kind- exact generated adapter kind- Returns:
- borrowed trusted entry
- Throws:
IllegalArgumentException- if the kind is unsupported
-
backendOnly
Tests the exact installed invocation-free capability, without a descriptor fallback.- Parameters:
kind- selected installed kind- Returns:
- whether this factory owns that backend kind
-
requiredPolicies
Returns immutable actual policy identities captured from trusted setup.- Parameters:
kind- selected installed kind- Returns:
- required actual guard objects
-
supports
Returns whether a trusted capability is installed without invoking its factory.- Parameters:
kind- exact adapter kind- Returns:
- whether it has an explicitly installed factory
-
annotationTypes
Returns the finite capabilities of explicitly installed backend factories.- Returns:
- immutable annotation capability union
- Throws:
IllegalArgumentException- for excessive or duplicate capability declarations
-
empty
Returns an empty opt-in registry preserving ordinary managed hosting behavior.- Returns:
- immutable empty registry
-