Record Class InvocationApplicationContext
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.InvocationApplicationContext
- Record Components:
identity- application identityinstanceIdentity- application instance identity
public record InvocationApplicationContext(ApplicationIdentity identity, ApplicationInstanceIdentity instanceIdentity)
extends Record
Application identity visible inside a current invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationApplicationContext(ApplicationIdentity identity, ApplicationInstanceIdentity instanceIdentity) Creates invocation application context. -
Method Summary
Modifier and TypeMethodDescriptionstatic InvocationApplicationContextempty()Creates an empty context for code running outside an application invocation.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of theinstanceIdentityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InvocationApplicationContext
public InvocationApplicationContext(ApplicationIdentity identity, ApplicationInstanceIdentity instanceIdentity) Creates invocation application context.
-
-
Method Details
-
empty
Creates an empty context for code running outside an application invocation.- Returns:
- empty context
-
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). -
identity
-
instanceIdentity
Returns the value of theinstanceIdentityrecord component.- Returns:
- the value of the
instanceIdentityrecord component
-