Record Class AnnotatedServiceDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.AnnotatedServiceDescriptor
- Record Components:
serviceName- logical J7M service nameserviceClass- service implementation class nameexported- whether automatic export is requestedtransport- logical transport selectormethods- annotated service methods
public record AnnotatedServiceDescriptor(String serviceName, String serviceClass, boolean exported, String transport, List<AnnotatedServiceMethodDescriptor> methods)
extends Record
Stable descriptor derived from an annotation-first service class.
The descriptor captures service name, export intent, transport selector, and method-level metadata that feeds normal J7M security, idempotency, and ObjectRef export semantics. It is not a transport binding or vendor adapter descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedServiceDescriptor(String serviceName, String serviceClass, boolean exported, String transport, List<AnnotatedServiceMethodDescriptor> methods) Creates an immutable service descriptor. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexported()Returns the value of theexportedrecord component.final inthashCode()Returns a hash code value for this object.methods()Returns the value of themethodsrecord component.Returns the value of theserviceClassrecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.
-
Constructor Details
-
AnnotatedServiceDescriptor
public AnnotatedServiceDescriptor(String serviceName, String serviceClass, boolean exported, String transport, List<AnnotatedServiceMethodDescriptor> methods) Creates an immutable service descriptor.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
serviceClass
Returns the value of theserviceClassrecord component.- Returns:
- the value of the
serviceClassrecord component
-
exported
-
transport
-
methods
-