Class AutoCommandRegistrar.Builder
java.lang.Object
com.zetaplugins.zetacore.command.registration.AutoCommandRegistrar.Builder
- Enclosing class:
AutoCommandRegistrar
Builder class for constructing an AutoCommandRegistrar instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withClassScanner(ClassScanner scanner) Uses an existing scanner instead of creating one from the package prefix.withCommandNamespace(String commandNamespace) withPackagePrefix(String packagePrefix) withPlugin(JavaPlugin plugin) withServiceRegistry(ServiceRegistry serviceRegistry)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withPlugin
-
withPackagePrefix
-
withCommandNamespace
-
withServiceRegistry
-
withClassScanner
Uses an existing scanner instead of creating one from the package prefix. Defaults to the service registry's scanner if a registry is set.- Parameters:
scanner- The scanner to use.- Returns:
- This builder.
-
build
-