Interface ManagedHostedAdapter<T>
- Type Parameters:
T- activation-owned application component
- All Superinterfaces:
ManagedComponentDefinition<T>, ManagedHostAdapter<T>
- All Known Subinterfaces:
ManagedJobDefinition<T>, ManagedPartitionDefinition<T>
Generated finite host-only callbacks for optional resource, worker and subscription adapters.
These callbacks are independent of the remote method allowlist. Only trusted host setup may
select an implementation for a declared feature; application metadata cannot install factories.
-
Method Summary
Modifier and TypeMethodDescriptionReturns every optional hosted feature declared by this component.invokeHosted(T instance, ManagedMethod method, Object[] arguments) Calls an exact generated host callback without reflective access or global JPMS opens.Methods inherited from interface ManagedComponentDefinition
create, dependencies, inject, name, owned, qualifiers, scope, typeMethods inherited from interface ManagedHostAdapter
invoke, lifecycle, probe, probes, remoteMethods
-
Method Details
-
hostedFeatures
List<ManagedHostedFeature> hostedFeatures()Returns every optional hosted feature declared by this component.- Returns:
- immutable finite feature declarations, at most64
-
invokeHosted
Calls an exact generated host callback without reflective access or global JPMS opens.- Parameters:
instance- activation-owned componentmethod- exact declared callback identityarguments- ordered callback arguments- Returns:
- application result, including null for void
- Throws:
Exception- if the callback is undeclared or application code fails
-