Class ManagedPolicyMetadata

java.lang.Object
org.j7m.middleware.application.components.ManagedPolicyMetadata

public final class ManagedPolicyMetadata extends Object
Finite verified metadata access for optional host policy adapters, without package opens or class loading. Only the complete actual export contract contributes; ordinary application helpers are not entry points.
  • Method Summary

    Modifier and Type
    Method
    Description
    declarations(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Returns the finite interface/implementation lineage contributing to this actual export.
    static Method
    method(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> businessInterface)
    Resolves the exact public interface method including erased parameter and return identity.
    static <A extends Annotation>
    A
    scalar(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface, Class<A> annotation)
    Resolves a scalar policy: method declarations override type defaults; equal-level conflicts fail closed.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • method

      public static Method method(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> businessInterface)
      Resolves the exact public interface method including erased parameter and return identity.
      Parameters:
      contract - complete verified public export identity
      businessInterface - declared exported interface
      Returns:
      exact public method
      Throws:
      IllegalArgumentException - for a mismatched or missing contract
    • declarations

      public static List<AnnotatedElement> declarations(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Returns the finite interface/implementation lineage contributing to this actual export.
      Parameters:
      contract - complete verified public identity
      implementation - exported implementation
      businessInterface - declared business interface
      Returns:
      immutable contributing method/type declarations
    • scalar

      public static <A extends Annotation> A scalar(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface, Class<A> annotation)
      Resolves a scalar policy: method declarations override type defaults; equal-level conflicts fail closed.
      Type Parameters:
      A - annotation type
      Parameters:
      contract - complete public identity
      implementation - exported implementation
      businessInterface - declared business interface
      annotation - scalar annotation class
      Returns:
      effective annotation, or null when absent
      Throws:
      IllegalArgumentException - for conflicting effective declarations