Last change
on this file since 857 was
857,
checked in by pharms, 12 years ago
|
- initial version of the HTML monitor
|
File size:
663 bytes
|
Line | |
---|
1 | package de.ugoe.cs.autoquest.htmlmonitor; |
---|
2 | |
---|
3 | /** |
---|
4 | * <p> |
---|
5 | * TODO comment |
---|
6 | * </p> |
---|
7 | * |
---|
8 | * @author Patrick Harms |
---|
9 | */ |
---|
10 | public class ShutdownHook implements Runnable { |
---|
11 | |
---|
12 | /** */ |
---|
13 | private HtmlMonitorComponent[] components; |
---|
14 | |
---|
15 | /** |
---|
16 | * <p> |
---|
17 | * TODO: comment |
---|
18 | * </p> |
---|
19 | * |
---|
20 | */ |
---|
21 | public ShutdownHook(HtmlMonitorComponent... components) { |
---|
22 | this.components = components; |
---|
23 | } |
---|
24 | |
---|
25 | /* (non-Javadoc) |
---|
26 | * @see java.lang.Thread#run() |
---|
27 | */ |
---|
28 | @Override |
---|
29 | public void run() { |
---|
30 | for (HtmlMonitorComponent component : components) { |
---|
31 | if (component != null) { |
---|
32 | component.stop(); |
---|
33 | } |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.