Record Class PluginIncludeListener

java.lang.Object
java.lang.Record
eu.cloudnetservice.node.impl.module.listener.PluginIncludeListener

public record PluginIncludeListener(@NonNull String moduleName, @NonNull Class<?> moduleClass, @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker, @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler) extends Record
  • Field Details

    • moduleName

      @NonNull private final @NonNull String moduleName
      The field for the moduleName record component.
    • moduleClass

      @NonNull private final @NonNull Class<?> moduleClass
      The field for the moduleClass record component.
    • moduleHelper

      @NonNull private final @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper
      The field for the moduleHelper record component.
    • includeChecker

      @NonNull private final @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker
      The field for the includeChecker record component.
    • includeHandler

      @Nullable private final @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler
      The field for the includeHandler record component.
    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • PluginIncludeListener

      public PluginIncludeListener(@NonNull @NonNull String moduleName, @NonNull @NonNull Class<?> moduleClass, @NonNull @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker)
    • PluginIncludeListener

      public PluginIncludeListener(@NonNull @NonNull String moduleName, @NonNull @NonNull Class<?> moduleClass, @NonNull @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker, @Nullable @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler)
      Creates an instance of a PluginIncludeListener record class.
      Parameters:
      moduleName - the value for the moduleName record component
      moduleClass - the value for the moduleClass record component
      moduleHelper - the value for the moduleHelper record component
      includeChecker - the value for the includeChecker record component
      includeHandler - the value for the includeHandler record component
  • Method Details

    • handle

      @EventListener public void handle(@NonNull @NonNull eu.cloudnetservice.node.event.service.CloudServicePreProcessStartEvent event)
    • 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.
    • moduleName

      @NonNull public @NonNull String moduleName()
      Returns the value of the moduleName record component.
      Returns:
      the value of the moduleName record component
    • moduleClass

      @NonNull public @NonNull Class<?> moduleClass()
      Returns the value of the moduleClass record component.
      Returns:
      the value of the moduleClass record component
    • moduleHelper

      @NonNull public @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper()
      Returns the value of the moduleHelper record component.
      Returns:
      the value of the moduleHelper record component
    • includeChecker

      @NonNull public @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker()
      Returns the value of the includeChecker record component.
      Returns:
      the value of the includeChecker record component
    • includeHandler

      @Nullable public @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler()
      Returns the value of the includeHandler record component.
      Returns:
      the value of the includeHandler record component