Class ManagedCallingPolicy
java.lang.Object
org.j7m.middleware.application.components.ManagedCallingPolicy
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ManagedInvocationPolicy
ManagedInvocationPolicy.Binding, ManagedInvocationPolicy.Phase, ManagedInvocationPolicy.Proceed -
Constructor Summary
ConstructorsConstructorDescriptionCreates calling support without any retry capability.ManagedCallingPolicy(org.j7m.middleware.application.api.ClientCallInterceptor retry) Installs actual host-owned client retry validation, borrowed for the host's lifetime. -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends Annotation>> Declares exactly which annotation behaviors this implementation enforces.bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Prepares bounded per-export policy state after all contracts validate, before constructors.voidvalidate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Validates a complete export contract without executing application code.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ManagedInvocationPolicy
bindHosted, phase, validateComponent, validateExposure, validateHosted, validateHostedExposure, validateHostedExposure
-
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
Declares exactly which annotation behaviors this implementation enforces.- Specified by:
annotationTypesin interfaceManagedInvocationPolicy- 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:
validatein interfaceManagedInvocationPolicy- Parameters:
contract- verified contract ID/version and complete method signatureimplementation- concrete application implementationbusinessInterface- 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:
bindin interfaceManagedInvocationPolicy- Parameters:
contract- verified complete method identityimplementation- concrete application implementationbusinessInterface- manifest-declared business interface- Returns:
- owned policy state
-