Class AutoEventListenerRegistrar

java.lang.Object
com.zetaplugins.zetacore.event.registration.AutoEventListenerRegistrar
All Implemented Interfaces:
EventListenerRegistrar

public class AutoEventListenerRegistrar extends Object implements EventListenerRegistrar
Manages the registration of event listeners for a plugin. Use the EventListener annotation to mark listener classes for automatic registration.
  • Constructor Details

    • AutoEventListenerRegistrar

      public AutoEventListenerRegistrar(JavaPlugin plugin, String packagePrefix)
      Parameters:
      plugin - The JavaPlugin instance.
      packagePrefix - The package prefix to scan for annotated classes.
    • AutoEventListenerRegistrar

      public AutoEventListenerRegistrar(JavaPlugin plugin, String packagePrefix, ServiceRegistry serviceRegistry)
      Parameters:
      plugin - The JavaPlugin instance.
      packagePrefix - The package prefix to scan for annotated classes.
      serviceRegistry - The ServiceRegistry for dependency injection.
  • Method Details