Class ManagedDeduplicationPolicy

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

public final class ManagedDeduplicationPolicy extends Object implements org.j7m.middleware.application.components.ManagedInvocationPolicy
Trusted durable replay adapter for authenticated managed method bodies. The borrowed D12 client fixes the authenticated tenant partition; replay identities additionally bind the actual principal, trust domain and full versioned method contract. Security precedes this REPLAY phase on every attempt. Decoding and pure canonical codec functions precede claims; this adapter does not promise exactly-once external effects or suppress all application code. Retained native identities are finite, never recycled automatically, and expiry never reexecutes.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Finite host policy configuration; backend and codec are borrowed, never closed here.

    Nested classes/interfaces inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding, org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase, org.j7m.middleware.application.components.ManagedInvocationPolicy.Proceed
  • Constructor Summary

    Constructors
    Constructor
    Description
    Installs at most256 named trusted registrations; applications cannot create capabilities by annotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<Class<? extends Annotation>>
    Returns exactly the behaviors implemented by this trusted adapter.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding
    bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Binds an immutable export policy; closing revokes later invocations but does not delete journals.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase
    Returns the fixed replay phase after authorization and ownership.
    void
    validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Validates complete effective annotation lineage before application construction.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    bindHosted, validateComponent, validateExposure, validateHosted, validateHostedExposure, validateHostedExposure
  • Constructor Details

    • ManagedDeduplicationPolicy

      public ManagedDeduplicationPolicy(Map<String, ManagedDeduplicationPolicy.Registration> policies)
      Installs at most256 named trusted registrations; applications cannot create capabilities by annotation.
      Parameters:
      policies - immutable finite policy registry, IDs matching letters/digits/underscore/dot/hyphen
      Throws:
      IllegalArgumentException - for invalid names or capacity
  • Method Details

    • phase

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()
      Returns the fixed replay phase after authorization and ownership.
      Specified by:
      phase in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      replay phase
    • annotationTypes

      public Set<Class<? extends Annotation>> annotationTypes()
      Returns exactly the behaviors implemented by this trusted adapter.
      Specified by:
      annotationTypes in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      immutable deduplication and key marker types
    • validate

      public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Validates complete effective annotation lineage before application construction.
      Specified by:
      validate in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - full public identity
      implementation - actual implementation
      businessInterface - declared public contract
      Throws:
      IllegalArgumentException - for missing/ambiguous keys, unknown policies or unsupported OneWay
    • bind

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Binds an immutable export policy; closing revokes later invocations but does not delete journals.
      Specified by:
      bind in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - verified versioned method
      implementation - actual implementation
      businessInterface - declared interface
      Returns:
      owned revocable policy binding