com.epam.admintool.builder
Class CommandBuilder

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

public class CommandBuilder
extends Object

Provides ability to build the command instance.


Field Summary
protected  Map<com.epam.admintool.builder.CommandBuilder.MapKey,Class<?>> classCommandCash
           
 
Method Summary
 Command buildCommand(String commandName, String externalPackage)
          Creates the command instance.
static Class<?> getCommandClass(String nameOfPackage, String className)
          Returns class by short name.
static CommandBuilder getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classCommandCash

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

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..


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.