Class Modules

  • All Implemented Interfaces:
    ExampleRunnable

    @Command(name="modules",
             description="A command that demonstrates the use of modules to group together sets of options for composition and reuse")
    public class Modules
    extends java.lang.Object
    implements ExampleRunnable
    If you have some set of options that make sense together you can modularize them out as a class and inject them into your actual command class

    This is particularly useful if you want to avoid using inheritance for options, especially in cases where different commands may use different combinations of some common option sets