Adds an application to the attached applications list. @param app The application to attach to this router.
(Application app)
| 608 | * @param app The application to attach to this router. |
| 609 | */ |
| 610 | public void addApplication(Application app) { |
| 611 | if (!this.applications.containsKey(app.getAppID())) { |
| 612 | this.applications.put(app.getAppID(), |
| 613 | new LinkedList<Application>()); |
| 614 | } |
| 615 | this.applications.get(app.getAppID()).add(app); |
| 616 | } |
| 617 | |
| 618 | /** |
| 619 | * Returns all the applications that want to receive messages for the given |
no test coverage detected