1 | if (strClassName.startsWith("org.apache.jmeter.gui")) {↵ | | 1 | if (strClassName.startsWith("org.apache.jmeter.report.gui.action")) {↵
|
| | | 2 | // log.info("classname:: " + strClassName);↵
|
2 | commandClass = Class.forName(strClassName);↵ | | 3 | commandClass = Class.forName(strClassName);↵
|
3 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵ | | 4 | if (!Modifier.isAbstract(commandClass.getModifiers())) {↵
|
4 | command = (Command) commandClass.newInstance();↵ | | 5 | command = (Command) commandClass.newInstance();↵
|
5 | Iterator iter = command.getActionNames().iterator();↵ | | 6 | Iterator iter = command.getActionNames().iterator();↵
|
6 | while (iter.hasNext()) {↵ | | 7 | while (iter.hasNext()) {↵
|
7 | String commandName = (String) iter.next();↵ | | 8 | String commandName = (String) iter.next();↵
|
8 | Set commandObjects = (Set) commands.get(commandName);↵ | | 9 | Set commandObjects = (Set) commands.get(commandName);↵
|
9 | if (commandObjects == null) {↵ | | 10 | if (commandObjects == null) {↵
|
10 | commandObjects = new HashSet();↵ | | 11 | commandObjects = new HashSet();↵
|
11 | commands.put(commandName, commandObjects);↵ | | 12 | commands.put(commandName, commandObjects);↵
|
12 | }↵ | | 13 | }↵
|
13 | commandObjects.add(command);↵ | | 14 | commandObjects.add(command);↵
|
14 | | | 15 |
|