Package org.apache.zookeeper.cli
Class CommandFactory
- java.lang.Object
-
- org.apache.zookeeper.cli.CommandFactory
-
public class CommandFactory extends Object
Factory class for creating instances ofCliCommand
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandFactory.Command
All Cli Commands.
-
Constructor Summary
Constructors Constructor Description CommandFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CliCommand
getInstance(CommandFactory.Command command)
Creates a newCliCommand
instance.
-
-
-
Method Detail
-
getInstance
public static CliCommand getInstance(CommandFactory.Command command)
Creates a newCliCommand
instance.- Parameters:
command
- theCommandFactory.Command
to create a new instance of- Returns:
- the new
CliCommand
instance
-
-