Module org.elasticsearch.server
Package org.elasticsearch.plugins
Record Class ActionPlugin.RestHandlersServices
java.lang.Object
java.lang.Record
org.elasticsearch.plugins.ActionPlugin.RestHandlersServices
- Enclosing interface:
ActionPlugin
public static record ActionPlugin.RestHandlersServices(Settings settings, RestController restController, ProjectResolver projectResolver, CrossProjectModeDecider crossProjectModeDecider)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRestHandlersServices(Settings settings, RestController restController, ProjectResolver projectResolver, CrossProjectModeDecider crossProjectModeDecider) Creates an instance of aRestHandlersServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecrossProjectModeDeciderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectResolverrecord component.Returns the value of therestControllerrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RestHandlersServices
public RestHandlersServices(Settings settings, RestController restController, ProjectResolver projectResolver, CrossProjectModeDecider crossProjectModeDecider) Creates an instance of aRestHandlersServicesrecord class.- Parameters:
settings- the value for thesettingsrecord componentrestController- the value for therestControllerrecord componentprojectResolver- the value for theprojectResolverrecord componentcrossProjectModeDecider- the value for thecrossProjectModeDeciderrecord component
-
-
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). -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
restController
Returns the value of therestControllerrecord component.- Returns:
- the value of the
restControllerrecord component
-
projectResolver
Returns the value of theprojectResolverrecord component.- Returns:
- the value of the
projectResolverrecord component
-
crossProjectModeDecider
Returns the value of thecrossProjectModeDeciderrecord component.- Returns:
- the value of the
crossProjectModeDeciderrecord component
-