public class CommandFactory extends Factory
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Factory> |
factories |
private static CommandFactory |
factory |
Modifier | Constructor and Description |
---|---|
private |
CommandFactory() |
Modifier and Type | Method and Description |
---|---|
ICommand |
GetCommand(java.lang.StringBuilder param,
NetworkCookie cookie,
java.lang.String object)
Gets the necessary command from the provided data.
|
static CommandFactory |
GetCommandFactory()
Gets the command factory.
|
private static CommandFactory factory
private java.util.Map<java.lang.String,Factory> factories
public static CommandFactory GetCommandFactory()
public ICommand GetCommand(java.lang.StringBuilder param, NetworkCookie cookie, java.lang.String object) throws InvalidFactoryParameterException
Factory
GetCommand
in class Factory
param
- The file path from the URL provided to the server.object
- The serialized object.InvalidFactoryParameterException
- Thrown if there isn't a command associated with param.