KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > event > SimpleCompilerListener


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  * Copyright 2004 Klaus Bartz
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package com.izforge.izpack.event;
23
24 import java.util.Map JavaDoc;
25
26 import net.n3.nanoxml.XMLElement;
27
28 import com.izforge.izpack.compiler.CompilerException;
29 import com.izforge.izpack.compiler.IPackager;
30 import com.izforge.izpack.compiler.PackInfo;
31
32 /**
33  * <p>
34  * This class implements all methods of interface CompilerListener, but do not do anything else. It
35  * can be used as base class to save implementation of unneeded methods.
36  * </p>
37  *
38  *
39  * @author Klaus Bartz
40  *
41  */

42 public class SimpleCompilerListener implements CompilerListener
43 {
44
45     /**
46      * Creates a newly object.
47      */

48     public SimpleCompilerListener()
49     {
50         super();
51     }
52
53     /*
54      * (non-Javadoc)
55      *
56      * @see com.izforge.izpack.compiler.CompilerListener#reviseAttributSetFile(java.util.Map,
57      * net.n3.nanoxml.XMLElement)
58      */

59     public Map JavaDoc reviseAdditionalDataMap(Map JavaDoc existentDataMap, XMLElement element)
60             throws CompilerException
61     {
62         return null;
63     }
64
65     /*
66      * (non-Javadoc)
67      *
68      * @see com.izforge.izpack.compiler.CompilerListener#AfterPack(com.izforge.izpack.compiler.Compiler.Pack,
69      * int, com.izforge.izpack.compiler.Packager)
70      */

71     public void afterPack(PackInfo pack, int packNumber, IPackager packager)
72             throws CompilerException
73     {
74     }
75
76     /*
77      * (non-Javadoc)
78      *
79      * @see com.izforge.izpack.compiler.CompilerListener#BeforePack(com.izforge.izpack.compiler.Compiler.Pack,
80      * int, com.izforge.izpack.compiler.Packager)
81      */

82     public void beforePack(PackInfo pack, int packNumber, IPackager packager)
83     {
84     }
85
86     /*
87      * (non-Javadoc)
88      *
89      * @see com.izforge.izpack.compiler.CompilerListener#notify(java.lang.String, int,
90      * net.n3.nanoxml.XMLElement, com.izforge.izpack.compiler.Packager)
91      */

92     public void notify(String JavaDoc position, int state, XMLElement data, IPackager packager)
93     {
94     }
95
96 }
97
Popular Tags