1 | command = (Command) commandClass.newInstance();↵ | | |
|
2 | Iterator iter = command.getActionNames().iterator();↵ | | |
|
3 | while (iter.hasNext()) {↵ | | |
|
4 | String commandName = (String) iter.next();↵ | | |
|
5 | Set command↵ | | 1 | while (iter.hasNext()) {↵
|
| | | 2 | Map.Entry entry = (Map.Entry) iter.next();↵
|
| | | 3 | Object item = entry.getKey();↵
|
6 | Objects = (Set) commands.get(commandName);↵ | | 4 | Object↵
|
7 | if (commandObjects == null) {↵ | | |
|
8 | commandObjects = new HashSet();↵ | | |
|
9 | commands.put(commandName, commandObjects);↵ | | |
|
10 | }↵ | | |
|
11 | commandObjects.add(command);↵ | | |
|
12 | ↵ | | 5 | prop = entry.getValue();↵
|
| | | 6 | if (newColl == null) {↵
|
| | | 7 | try {↵
|
| | | 8 | newColl = (Map) coll.getClass().newInstance();↵
|
| | | 9 | } catch (Exception e) {↵
|
| | | 10 | log.error("Bad collection", e);↵
|
| | | 11 | return coll;↵
|
| | | 12 | }↵
|
| | | 13 | }↵
|
| | | 14 | newColl.put(item, convertObject(prop));↵
|
13 | } | | 15 | }
|