Package com.ultikits.ultitools.abstracts.command


package com.ultikits.ultitools.abstracts.command
New command handling framework with improved architecture.

This package provides a refactored command system using:

  • Chain of Responsibility Pattern - for command validation pipeline
  • Strategy Pattern - for type parsing
  • Context Object Pattern - for command execution context

Key Components:

Migration from AbstractCommandExecutor:


 // Old way (deprecated)
 public class MyCommand extends AbstractCommandExecutor {
     @Override
     protected void handleHelp(CommandSender sender) { }
 }
 
 // New way
 public class MyCommand extends BaseCommandExecutor {
     @Override
     protected void handleHelp(CommandSender sender) { }
 }
 

Benefits of new architecture:

  • Better separation of concerns
  • Extensible validation pipeline
  • Type-safe parameter parsing
  • Easier unit testing
  • Reduced code duplication
Since:
6.2.0
See Also: