From ad133c599432df99a935c0f742c078cccbe76ac2 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Wed, 22 May 2013 12:07:59 -0400 Subject: [PATCH] Renames variable --- .../mkjsf/pazpar2/state/Pazpar2State.java | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java b/src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java index ac42496..0ac555e 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java @@ -30,19 +30,19 @@ public class Pazpar2State { String key = null; Map commands = new HashMap();; - public Pazpar2State (StateManager mgr) { - commands.put(Pazpar2Commands.INIT, new InitCommand(mgr)); - commands.put(Pazpar2Commands.PING, new PingCommand(mgr)); - commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(mgr)); - commands.put(Pazpar2Commands.SEARCH, new SearchCommand(mgr)); - commands.put(Pazpar2Commands.STAT, new StatCommand(mgr)); - commands.put(Pazpar2Commands.SHOW, new ShowCommand(mgr)); - commands.put(Pazpar2Commands.RECORD, new RecordCommand(mgr)); - commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(mgr)); - commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(mgr)); + public Pazpar2State (StateManager stateManager) { + commands.put(Pazpar2Commands.INIT, new InitCommand(stateManager)); + commands.put(Pazpar2Commands.PING, new PingCommand(stateManager)); + commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(stateManager)); + commands.put(Pazpar2Commands.SEARCH, new SearchCommand(stateManager)); + commands.put(Pazpar2Commands.STAT, new StatCommand(stateManager)); + commands.put(Pazpar2Commands.SHOW, new ShowCommand(stateManager)); + commands.put(Pazpar2Commands.RECORD, new RecordCommand(stateManager)); + commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(stateManager)); + commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(stateManager)); - commands.put(ServiceProxyCommands.AUTH, new AuthCommand(mgr)); - commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(mgr)); + commands.put(ServiceProxyCommands.AUTH, new AuthCommand(stateManager)); + commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(stateManager)); // key = "#1"; } -- 1.7.10.4