Package com.epam.admintool.builder
Class CommandBuilder
java.lang.Object
com.epam.admintool.builder.CommandBuilder
Provides ability to build the command instance.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionbuildCommand
(String commandName, String externalPackage) Creates the command instance.static Class<?>
getCommandClass
(String nameOfPackage, String className) Returns class by short name.static CommandBuilder
-
Field Details
-
classCommandCash
-
-
Method Details
-
getInstance
-
buildCommand
Creates the command instance.- Parameters:
commandName
- the command nameexternalPackage
- the package where command situated
-
getCommandClass
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..
-