- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.service.CommonServices
-
- All Implemented Interfaces:
ServiceDeclarator
public final class CommonServices extends Object implements ServiceDeclarator
Defines references and descriptors for all common services.
-
-
Field Summary
Fields Modifier and Type Field Description static com.github.alex1304.rdi.ServiceReference<BotService>
BOT
static com.github.alex1304.rdi.ServiceReference<CommandService>
COMMAND_SERVICE
static com.github.alex1304.rdi.ServiceReference<DatabaseService>
DATABASE_SERVICE
static com.github.alex1304.rdi.ServiceReference<EmojiService>
EMOJI_SERVICE
static com.github.alex1304.rdi.ServiceReference<discord4j.core.GatewayDiscordClient>
GATEWAY_DISCORD_CLIENT
static com.github.alex1304.rdi.ServiceReference<InteractiveMenuService>
INTERACTIVE_MENU_SERVICE
static com.github.alex1304.rdi.ServiceReference<LocalizationService>
LOCALIZATION_SERVICE
static com.github.alex1304.rdi.ServiceReference<LoggingService>
LOGGING_SERVICE
static com.github.alex1304.rdi.ServiceReference<PluginMetadataService>
PLUGIN_METADATA_SERVICE
-
Constructor Summary
Constructors Constructor Description CommonServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<com.github.alex1304.rdi.config.ServiceDescriptor>
declareServices(BotConfig botConfig)
Declares service descriptors to register to the bot's service container.
-
-
-
Field Detail
-
BOT
public static final com.github.alex1304.rdi.ServiceReference<BotService> BOT
-
GATEWAY_DISCORD_CLIENT
public static final com.github.alex1304.rdi.ServiceReference<discord4j.core.GatewayDiscordClient> GATEWAY_DISCORD_CLIENT
-
COMMAND_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<CommandService> COMMAND_SERVICE
-
DATABASE_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<DatabaseService> DATABASE_SERVICE
-
EMOJI_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<EmojiService> EMOJI_SERVICE
-
INTERACTIVE_MENU_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<InteractiveMenuService> INTERACTIVE_MENU_SERVICE
-
LOCALIZATION_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<LocalizationService> LOCALIZATION_SERVICE
-
LOGGING_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<LoggingService> LOGGING_SERVICE
-
PLUGIN_METADATA_SERVICE
public static final com.github.alex1304.rdi.ServiceReference<PluginMetadataService> PLUGIN_METADATA_SERVICE
-
-
Method Detail
-
declareServices
public Set<com.github.alex1304.rdi.config.ServiceDescriptor> declareServices(BotConfig botConfig)
Description copied from interface:ServiceDeclarator
Declares service descriptors to register to the bot's service container.- Specified by:
declareServices
in interfaceServiceDeclarator
- Parameters:
botConfig
- the bot configuration- Returns:
- a Set containing services to declare
-
-