Renames variable
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 22 May 2013 16:07:59 +0000 (12:07 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 22 May 2013 16:07:59 +0000 (12:07 -0400)
src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java

index ac42496..0ac555e 100644 (file)
@@ -30,19 +30,19 @@ public class Pazpar2State {
   String key = null;\r
   Map<String,Pazpar2Command> commands = new HashMap<String,Pazpar2Command>();;\r
 \r
-  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
 \r
-    commands.put(ServiceProxyCommands.AUTH, new AuthCommand(mgr));\r
-    commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(mgr));\r
+    commands.put(ServiceProxyCommands.AUTH, new AuthCommand(stateManager));\r
+    commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(stateManager));\r
     // key = "#1";\r
   }\r
     \r