Class CommandMessageSourceProvider
java.lang.Object
tech.guilhermekaua.spigotboot.commands.message.CommandMessageSourceProvider
Resolves the active
CommandMessageSource from the dependency context, mirroring
CommandMessagesProvider: no bean yields a no-op source, one bean wins, several
require exactly one @Primary.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommandMessageSourceProvider
public CommandMessageSourceProvider()
-
-
Method Details
-
resolve
- Parameters:
context- the command context; must not benull- Returns:
- the resolved source, never
null(a no-op source when none is registered) - Throws:
NullPointerException- ifcontextisnullIllegalStateException- when multiple sources exist without exactly one@Primarysource
-