Class VelocityConfigAPI

java.lang.Object
me.a8kj.config.VelocityConfigAPI
All Implemented Interfaces:
ConfigAPI

public class VelocityConfigAPI extends Object implements ConfigAPI
Implementation of the ConfigAPI specifically for the Velocity Proxy platform.

This class serves as the main entry point for managing configurations and events within a Velocity environment, providing access to the global registry and event bus.

Since:
0.2
Author:
a8kj7sea
  • Constructor Details

    • VelocityConfigAPI

      public VelocityConfigAPI()
  • Method Details

    • getConfigRegistry

      public ConfigRegistry getConfigRegistry()
      Retrieves the configuration registry instance.
      Specified by:
      getConfigRegistry in interface ConfigAPI
      Returns:
      the ConfigRegistry for this API instance.
    • getEventManager

      public me.a8kj.eventbus.manager.EventManager getEventManager()
      Retrieves the event manager instance.
      Specified by:
      getEventManager in interface ConfigAPI
      Returns:
      the EventManager used for dispatching configuration events.
    • getConfig

      public ConfigFile<?> getConfig(String key)
      Retrieves a specific configuration file by its unique key.

      This implementation delegates the lookup to the default behavior defined in ConfigAPI.

      Specified by:
      getConfig in interface ConfigAPI
      Parameters:
      key - the unique identifier of the configuration.
      Returns:
      the ConfigFile associated with the key, or null if not found.