Class CommandBuilder

java.lang.Object
com.epam.admintool.builder.CommandBuilder

public class CommandBuilder extends Object
Provides ability to build the command instance.
  • Field Details

    • classCommandCash

      protected final Map<com.epam.admintool.builder.CommandBuilder.MapKey,Class<?>> classCommandCash
  • Method Details

    • getInstance

      public static CommandBuilder getInstance()
    • buildCommand

      public Command buildCommand(String commandName, String externalPackage)
      Creates the command instance.
      Parameters:
      commandName - the command name
      externalPackage - the package where command situated
    • getCommandClass

      public static Class<?> getCommandClass(String nameOfPackage, String className)
      Returns class by short name.
      Parameters:
      nameOfPackage - the name of package.
      className - the short name of class.
      Returns:
      Instance of Class or null if class with input shortname not found..