Class ManagedCallingPolicy

java.lang.Object
org.j7m.middleware.application.components.ManagedCallingPolicy
All Implemented Interfaces:
ManagedInvocationPolicy

public final class ManagedCallingPolicy extends Object implements ManagedInvocationPolicy
Trusted validation of managed calling semantics. Actual completion ownership is installed by the manager's transport hook; this policy does not create server retries or durable deduplication. Client-visible operational metadata must be declared on the public interface, not hidden solely on an implementation. Cancellation is cooperative and LongRunning never extends caller budget.
  • Constructor Details

    • ManagedCallingPolicy

      public ManagedCallingPolicy()
      Creates calling support without any retry capability. Active Retry metadata then fails validation, even when it requests zero additional attempts.
    • ManagedCallingPolicy

      public ManagedCallingPolicy(org.j7m.middleware.application.api.ClientCallInterceptor retry)
      Installs actual host-owned client retry validation, borrowed for the host's lifetime. The same interceptor must be installed in the intended client binding setup to perform retry; server acceptance itself never causes replay.
      Parameters:
      retry - trusted interceptor with its actual finite policy registry, or null to reject Retry
  • Method Details

    • annotationTypes

      public Set<Class<? extends Annotation>> annotationTypes()
      Declares exactly which annotation behaviors this implementation enforces.
      Specified by:
      annotationTypes in interface ManagedInvocationPolicy
      Returns:
      immutable finite capability set; an empty set permits a host-wide observer
    • validate

      public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Validates a complete export contract without executing application code.
      Specified by:
      validate in interface ManagedInvocationPolicy
      Parameters:
      contract - verified contract ID/version and complete method signature
      implementation - concrete application implementation
      businessInterface - manifest-declared ordinary business interface
    • bind

      public ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Prepares bounded per-export policy state after all contracts validate, before constructors.
      Specified by:
      bind in interface ManagedInvocationPolicy
      Parameters:
      contract - verified complete method identity
      implementation - concrete application implementation
      businessInterface - manifest-declared business interface
      Returns:
      owned policy state