Class LogStreamMutatorAutoRegisterHandler
java.lang.Object
de.craftsblock.craftsnet.autoregister.AutoRegisterHandler<LogStreamMutator>
de.craftsblock.craftsnet.autoregister.builtin.cli.LogStreamMutatorAutoRegisterHandler
A handler for automatically registering
LogStreamMutator implementations. This class extends
AutoRegisterHandler and provides a concrete implementation for handling the registration of
LogStreamMutator instances into the log stream of CraftsNet.- Since:
- 3.5.2
-
Field Summary
Fields inherited from class de.craftsblock.craftsnet.autoregister.AutoRegisterHandler
craftsNet -
Constructor Summary
ConstructorsConstructorDescriptionLogStreamMutatorAutoRegisterHandler(CraftsNet craftsNet) Constructs a newLogStreamMutatorAutoRegisterHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhandle(LogStreamMutator mutator, AutoRegisterInfo info, Object... args) Handles the registration of the providedLogStreamMutator.Methods inherited from class de.craftsblock.craftsnet.autoregister.AutoRegisterHandler
getCraftsNet
-
Constructor Details
-
LogStreamMutatorAutoRegisterHandler
Constructs a newLogStreamMutatorAutoRegisterHandler.- Parameters:
craftsNet- TheCraftsNetinstance used for managing the log stream.
-
-
Method Details
-
handle
Handles the registration of the providedLogStreamMutator.This method attempts to register the given
LogStreamMutatorwith theCraftsNet.getLogStream()of the associatedCraftsNetinstance. If registration is successful, the method returnstrue.- Specified by:
handlein classAutoRegisterHandler<LogStreamMutator>- Parameters:
mutator- TheLogStreamMutatorto be registered.args- Additional arguments (not used in this implementation but provided for extensibility).info- TheAutoRegisterInfowhich holds more information about the object.- Returns:
trueif the registration was successful,falseotherwise.
-