KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > compiler > PackagerListener


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * 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
30     /** Message priority of "debug". */
31     public static final int MSG_DEBUG = 0;
32
33     /** Message priority of "error". */
34     public static final int MSG_ERR = 1;
35
36     /** Message priority of "information". */
37     public static final int MSG_INFO = 2;
38
39     /** Message priority of "verbose". */
40     public static final int MSG_VERBOSE = 3;
41
42     /** Message priority of "warning". */
43     public static final int MSG_WARN = 4;
44
45     /**
46      * Send a message with the priority MSG_INFO.
47      *
48      * @param info The information that has been sent.
49      */

50     public void packagerMsg(String JavaDoc info);
51
52     /**
53      * Send a message with the specified priority.
54      *
55      * @param info The information that has been sent.
56      * @param priority The priority of the message.
57      */

58     public void packagerMsg(String JavaDoc info, int priority);
59
60     /** Called when the packager starts. */
61     public void packagerStart();
62
63     /** Called when the packager stops. */
64     public void packagerStop();
65 }
66
Popular Tags