1 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵ | | 1 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵
|
2 | command = (Command) commandClass.newInstance();↵ | | 2 | command = (Command) commandClass.newInstance();↵
|
3 | Iterator iter = command.getActionNames().iterator();↵ | | 3 | Iterator iter = command.getActionNames().iterator();↵
|
4 | while (iter.hasNext()) {↵ | | 4 | while (iter.hasNext()) {↵
|
5 | String commandName = (String) iter.next();↵ | | 5 | String commandName = (String) iter.next();↵
|
6 | Set commandObjects = (Set) commands.get(commandName);↵ | | 6 | Set commandObjects = (Set) commands.get(commandName);↵
|
7 | if (commandObjects == null) {↵ | | 7 | if (commandObjects == null) {↵
|
8 | commandObjects = new HashSet();↵ | | 8 | commandObjects = new HashSet();↵
|
9 | commands.put(commandName, commandObjects);↵ | | 9 | commands.put(commandName, commandObjects);↵
|
10 | }↵ | | 10 | }↵
|
11 | commandObjects.add(command);↵ | | 11 | commandObjects.add(command);↵
|
12 | | | 12 |
|