com.epam.admintool.builder
Class CommandBuilder
java.lang.Object
com.epam.admintool.builder.CommandBuilder
public class CommandBuilder
- extends Object
Provides ability to build the command instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classCommandCash
protected final Map<com.epam.admintool.builder.CommandBuilder.MapKey,Class<?>> classCommandCash
getInstance
public static CommandBuilder getInstance()
buildCommand
public Command buildCommand(String commandName,
String externalPackage)
- Creates the command instance.
- Parameters:
commandName
- the command nameexternalPackage
- 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..
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.