Skip to content

Commit a822f7b

Browse files
committed
CommandModule: make Command instance as a param
Together with the previous commit, this change will make the Command instance receive a Context injection as part of the CommandModule's injection -- something which was previously not possible.
1 parent c09937e commit a822f7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scijava/command/CommandModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public class CommandModule extends AbstractModule implements Cancelable,
8080
private final CommandInfo info;
8181

8282
/** The command instance handled by this module. */
83+
@Parameter
8384
private final Command command;
8485

8586
@Parameter

0 commit comments

Comments
 (0)