Refactors commands and injection
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / InitCommand.java
index 3166168..958aff7 100644 (file)
@@ -1,14 +1,13 @@
 package com.indexdata.mkjsf.pazpar2.commands;\r
 \r
 import com.indexdata.mkjsf.pazpar2.commands.sp.ServiceProxyCommand;\r
-import com.indexdata.mkjsf.pazpar2.state.StateManager;\r
 \r
 public class InitCommand extends Pazpar2Command implements ServiceProxyCommand {\r
 \r
   private static final long serialVersionUID = -4915976465898889987L;\r
-\r
-  public InitCommand(StateManager stateMgr) {\r
-    super("init",stateMgr);\r
+  \r
+  public InitCommand() {\r
+    super("init");\r
   }\r
   \r
   public void setClear(String clear) { \r
@@ -38,7 +37,7 @@ public class InitCommand extends Pazpar2Command implements ServiceProxyCommand {
   }\r
   \r
   public InitCommand copy () {\r
-    InitCommand newCommand = new InitCommand(stateMgr);\r
+    InitCommand newCommand = new InitCommand();\r
     for (String parameterName : parameters.keySet()) {\r
       newCommand.setParameterInState(parameters.get(parameterName).copy());      \r
     }    \r