Interface ManagedHostedAdapter<T>

Type Parameters:
T - activation-owned application component
All Superinterfaces:
ManagedComponentDefinition<T>, ManagedHostAdapter<T>
All Known Subinterfaces:
ManagedJobDefinition<T>, ManagedPartitionDefinition<T>

public interface ManagedHostedAdapter<T> extends ManagedHostAdapter<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 Details

    • hostedFeatures

      List<ManagedHostedFeature> hostedFeatures()
      Returns every optional hosted feature declared by this component.
      Returns:
      immutable finite feature declarations, at most64
    • invokeHosted

      Object invokeHosted(T instance, ManagedMethod method, Object[] arguments) throws Exception
      Calls an exact generated host callback without reflective access or global JPMS opens.
      Parameters:
      instance - activation-owned component
      method - exact declared callback identity
      arguments - ordered callback arguments
      Returns:
      application result, including null for void
      Throws:
      Exception - if the callback is undeclared or application code fails