1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.context.notification; |
12 | |
|
13 | |
import org.mule.api.context.notification.BlockingServerEvent; |
14 | |
import org.mule.api.context.notification.ServerNotification; |
15 | |
import org.mule.api.model.Model; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
public class ModelNotification extends ServerNotification implements BlockingServerEvent |
24 | |
{ |
25 | |
|
26 | |
|
27 | |
|
28 | |
private static final long serialVersionUID = -1954880336427554435L; |
29 | |
|
30 | |
public static final int MODEL_INITIALISED = MODEL_EVENT_ACTION_START_RANGE + 2; |
31 | |
public static final int MODEL_STARTED = MODEL_EVENT_ACTION_START_RANGE + 6; |
32 | |
public static final int MODEL_STOPPED = MODEL_EVENT_ACTION_START_RANGE + 8; |
33 | |
public static final int MODEL_DISPOSED = MODEL_EVENT_ACTION_START_RANGE + 10; |
34 | |
|
35 | |
static { |
36 | 0 | registerAction("model initialised", MODEL_INITIALISED); |
37 | 0 | registerAction("model started", MODEL_STARTED); |
38 | 0 | registerAction("model stopped", MODEL_STOPPED); |
39 | 0 | registerAction("model disposed", MODEL_DISPOSED); |
40 | 0 | } |
41 | |
|
42 | |
public ModelNotification(Model model, int action) |
43 | |
{ |
44 | 0 | super(model.getName(), action); |
45 | 0 | resourceIdentifier = model.getName(); |
46 | 0 | } |
47 | |
} |