Package dev.shamoo.runtime.core
Record Class PluginRuntimeContext
java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.PluginRuntimeContext
public record PluginRuntimeContext(InstalledPluginCandidate candidate, ResourceRegistry resources, InvocationController invocations, PlatformCapabilities platformCapabilities, PluginServices services, PluginEvents events, UUID generationId)
extends Record
Core-owned services supplied to a runtime implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginRuntimeContext(InstalledPluginCandidate candidate, ResourceRegistry resources, InvocationController invocations, PlatformCapabilities platformCapabilities, PluginServices services, PluginEvents events) PluginRuntimeContext(InstalledPluginCandidate candidate, ResourceRegistry resources, InvocationController invocations, PlatformCapabilities platformCapabilities, PluginServices services, PluginEvents events, UUID generationId) Creates an instance of aPluginRuntimeContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidaterecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.Returns the value of thegenerationIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationsrecord component.Returns the value of theplatformCapabilitiesrecord component.Returns the value of theresourcesrecord component.services()Returns the value of theservicesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginRuntimeContext
public PluginRuntimeContext(InstalledPluginCandidate candidate, ResourceRegistry resources, InvocationController invocations, PlatformCapabilities platformCapabilities, PluginServices services, PluginEvents events, UUID generationId) Creates an instance of aPluginRuntimeContextrecord class.- Parameters:
candidate- the value for thecandidaterecord componentresources- the value for theresourcesrecord componentinvocations- the value for theinvocationsrecord componentplatformCapabilities- the value for theplatformCapabilitiesrecord componentservices- the value for theservicesrecord componentevents- the value for theeventsrecord componentgenerationId- the value for thegenerationIdrecord component
-
PluginRuntimeContext
public PluginRuntimeContext(InstalledPluginCandidate candidate, ResourceRegistry resources, InvocationController invocations, PlatformCapabilities platformCapabilities, PluginServices services, PluginEvents events)
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
candidate
Returns the value of thecandidaterecord component.- Returns:
- the value of the
candidaterecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
invocations
Returns the value of theinvocationsrecord component.- Returns:
- the value of the
invocationsrecord component
-
platformCapabilities
Returns the value of theplatformCapabilitiesrecord component.- Returns:
- the value of the
platformCapabilitiesrecord component
-
services
Returns the value of theservicesrecord component.- Returns:
- the value of the
servicesrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
generationId
Returns the value of thegenerationIdrecord component.- Returns:
- the value of the
generationIdrecord component
-