Class ManagedResourceTransactionPolicy

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

public final class ManagedResourceTransactionPolicy extends Object implements org.j7m.middleware.application.components.ManagedInvocationPolicy
Trusted REQUIRED adapter for existing native resource strict-2PL/2PC. Participating endpoints are borrowed host capabilities; ordinary callers receive only a bounded invocation context. A prepared participant never treats a timeout as an abort decision. JDBC, queues, arbitrary external effects and the separate D12 protected map are not enlisted here.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Borrowed finite participating resource configuration.

    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
    Registers trusted policies without opening transactions or owning supplied endpoints.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<Class<? extends Annotation>>
    Returns the exact implemented annotation behavior.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding
    bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Prepares a revocable immutable method binding; no transaction starts until actual owned admission.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase
    Returns the fixed transaction phase inside replay and outside application code.
    void
    validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Validates full lineage and rejects JDBC/native mixing 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

  • Method Details

    • phase

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()
      Returns the fixed transaction phase inside replay and outside application code.
      Specified by:
      phase in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      transaction phase
    • annotationTypes

      public Set<Class<? extends Annotation>> annotationTypes()
      Returns the exact implemented annotation behavior.
      Specified by:
      annotationTypes in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      resource transaction marker
    • validate

      public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Validates full lineage and rejects JDBC/native mixing before application construction.
      Specified by:
      validate in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - complete verified method identity
      implementation - actual implementation
      businessInterface - declared business interface
      Throws:
      IllegalArgumentException - for unsupported metadata/profile
    • bind

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Prepares a revocable immutable method binding; no transaction starts until actual owned admission.
      Specified by:
      bind in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - verified method
      implementation - implementation class
      businessInterface - declared interface
      Returns:
      owned binding; native clients remain borrowed