01: /*
02: * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
03: *
04: * http://izpack.org/
05: * http://izpack.codehaus.org/
06: *
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19:
20: package com.izforge.izpack.compiler;
21:
22: /**
23: * An interface for classes that want to listen to a packager events.
24: *
25: * @author Julien Ponge
26: */
27: public interface PackagerListener {
28:
29: /** Message priority of "debug". */
30: public static final int MSG_DEBUG = 0;
31:
32: /** Message priority of "error". */
33: public static final int MSG_ERR = 1;
34:
35: /** Message priority of "information". */
36: public static final int MSG_INFO = 2;
37:
38: /** Message priority of "verbose". */
39: public static final int MSG_VERBOSE = 3;
40:
41: /** Message priority of "warning". */
42: public static final int MSG_WARN = 4;
43:
44: /**
45: * Send a message with the priority MSG_INFO.
46: *
47: * @param info The information that has been sent.
48: */
49: public void packagerMsg(String info);
50:
51: /**
52: * Send a message with the specified priority.
53: *
54: * @param info The information that has been sent.
55: * @param priority The priority of the message.
56: */
57: public void packagerMsg(String info, int priority);
58:
59: /** Called when the packager starts. */
60: public void packagerStart();
61:
62: /** Called when the packager stops. */
63: public void packagerStop();
64: }
|