Record Class ManagedOutboxFactory.Registration
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedOutboxFactory.Registration
- Record Components:
contract- exact ordinary producer interface, or null for trusted symbolic registrationcontractName- exact authorized binary name; never used for class loadingprofiles- immutable policy-name to exact publication/relay capability, at most64
- Enclosing class:
ManagedOutboxFactory
-
Constructor Summary
ConstructorsConstructorDescriptionRegistration(Class<?> contract, String contractName, Map<String, OutboxRelayProfile> profiles) Copies the registry without constructing values or opening connections.Registration(Class<?> contract, Map<String, OutboxRelayProfile> profiles) Registers a host-visible exact interface identity.Registration(String contractName, Map<String, OutboxRelayProfile> profiles) Authorizes an application-owned interface by exact binary name. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> contract()Returns the value of thecontractrecord component.Returns the value of thecontractNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.profiles()Returns the value of theprofilesrecord component.toString()Omits connection and policy values from diagnostics.
-
Constructor Details
-
Registration
public Registration(Class<?> contract, String contractName, Map<String, OutboxRelayProfile> profiles) Copies the registry without constructing values or opening connections. -
Registration
Registers a host-visible exact interface identity.- Parameters:
contract- authorized ordinary producer interfaceprofiles- finite publication capabilities
-
Registration
Authorizes an application-owned interface by exact binary name. Actual generated dependency type and its entire method/schema contract are validated before construction; no class is loaded from this name and no application marker grants a capability.- Parameters:
contractName- authorized interface binary nameprofiles- finite publication capabilities
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
contract
-
contractName
Returns the value of thecontractNamerecord component.- Returns:
- the value of the
contractNamerecord component
-
profiles
-