Record Class EntitlementInitialization.InitializeArgs

java.lang.Object
java.lang.Record
org.elasticsearch.entitlement.initialization.EntitlementInitialization.InitializeArgs
Record Components:
pathLookup -
suppressFailureLogPackages -
policyManager -
Enclosing class:
EntitlementInitialization

public static record EntitlementInitialization.InitializeArgs(PathLookup pathLookup, Set<Package> suppressFailureLogPackages, PolicyManager policyManager) extends Record
Arguments to EntitlementInitialization.initialize(java.lang.instrument.Instrumentation). Since that's called in a static context from the agent, we have no way to pass arguments directly, so we stuff them in here.
  • Constructor Details

    • InitializeArgs

      public InitializeArgs(PathLookup pathLookup, Set<Package> suppressFailureLogPackages, PolicyManager policyManager)
      Creates an instance of a InitializeArgs record class.
      Parameters:
      pathLookup - the value for the pathLookup record component
      suppressFailureLogPackages - the value for the suppressFailureLogPackages record component
      policyManager - the value for the policyManager record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pathLookup

      public PathLookup pathLookup()
      Returns the value of the pathLookup record component.
      Returns:
      the value of the pathLookup record component
    • suppressFailureLogPackages

      public Set<Package> suppressFailureLogPackages()
      Returns the value of the suppressFailureLogPackages record component.
      Returns:
      the value of the suppressFailureLogPackages record component
    • policyManager

      public PolicyManager policyManager()
      Returns the value of the policyManager record component.
      Returns:
      the value of the policyManager record component