- public Pazpar2State (StateManager mgr) {\r
- commands.put(Pazpar2Commands.INIT, new InitCommand(mgr));\r
- commands.put(Pazpar2Commands.PING, new PingCommand(mgr));\r
- commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(mgr));\r
- commands.put(Pazpar2Commands.SEARCH, new SearchCommand(mgr));\r
- commands.put(Pazpar2Commands.STAT, new StatCommand(mgr));\r
- commands.put(Pazpar2Commands.SHOW, new ShowCommand(mgr));\r
- commands.put(Pazpar2Commands.RECORD, new RecordCommand(mgr));\r
- commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(mgr));\r
- commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(mgr)); \r
+ public Pazpar2State (StateManager stateManager) {\r
+ commands.put(Pazpar2Commands.INIT, new InitCommand(stateManager));\r
+ commands.put(Pazpar2Commands.PING, new PingCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SEARCH, new SearchCommand(stateManager));\r
+ commands.put(Pazpar2Commands.STAT, new StatCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SHOW, new ShowCommand(stateManager));\r
+ commands.put(Pazpar2Commands.RECORD, new RecordCommand(stateManager));\r
+ commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(stateManager));\r
+ commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(stateManager)); \r