Package me.a8kj.config
Class VelocityConfigAPI
java.lang.Object
me.a8kj.config.VelocityConfigAPI
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigFile<?> Retrieves a specific configuration file by its unique key.Retrieves the configuration registry instance.me.a8kj.eventbus.manager.EventManagerRetrieves the event manager instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.a8kj.config.ConfigAPI
callEvent, registerListener, unregisterListener
-
Constructor Details
-
VelocityConfigAPI
public VelocityConfigAPI()
-
-
Method Details
-
getConfigRegistry
Retrieves the configuration registry instance.- Specified by:
getConfigRegistryin interfaceConfigAPI- Returns:
- the
ConfigRegistryfor this API instance.
-
getEventManager
public me.a8kj.eventbus.manager.EventManager getEventManager()Retrieves the event manager instance.- Specified by:
getEventManagerin interfaceConfigAPI- Returns:
- the
EventManagerused for dispatching configuration events.
-
getConfig
Retrieves a specific configuration file by its unique key.This implementation delegates the lookup to the default behavior defined in
ConfigAPI.- Specified by:
getConfigin interfaceConfigAPI- Parameters:
key- the unique identifier of the configuration.- Returns:
- the
ConfigFileassociated with the key, or null if not found.
-