001/*
002 * IzPack - Copyright 2001-2005 Julien Ponge, All Rights Reserved.
003 * 
004 * http://www.izforge.com/izpack/
005 * http://developer.berlios.de/projects/izpack/
006 * 
007 * Copyright 2004 Klaus Bartz
008 * 
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *     http://www.apache.org/licenses/LICENSE-2.0
014 *     
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 */
021
022package com.izforge.izpack.event;
023
024import java.util.Map;
025
026import net.n3.nanoxml.XMLElement;
027
028import com.izforge.izpack.compiler.CompilerException;
029import com.izforge.izpack.compiler.PackInfo;
030import com.izforge.izpack.compiler.Packager;
031
032/**
033 * <p>
034 * This class implements all methods of interface CompilerListener, but do not do anything else. It
035 * can be used as base class to save implementation of unneeded methods.
036 * </p>
037 * 
038 * 
039 * @author Klaus Bartz
040 * 
041 */
042public class SimpleCompilerListener implements CompilerListener
043{
044
045    /**
046     * Creates a newly object.
047     */
048    public SimpleCompilerListener()
049    {
050        super();
051    }
052
053    /*
054     * (non-Javadoc)
055     * 
056     * @see com.izforge.izpack.compiler.CompilerListener#reviseAttributSetFile(java.util.Map,
057     * net.n3.nanoxml.XMLElement)
058     */
059    public Map reviseAdditionalDataMap(Map existentDataMap, XMLElement element)
060            throws CompilerException
061    {
062        return null;
063    }
064
065    /*
066     * (non-Javadoc)
067     * 
068     * @see com.izforge.izpack.compiler.CompilerListener#AfterPack(com.izforge.izpack.compiler.Compiler.Pack,
069     * int, com.izforge.izpack.compiler.Packager)
070     */
071    public void afterPack(PackInfo pack, int packNumber, Packager packager)
072            throws CompilerException
073    {
074    }
075
076    /*
077     * (non-Javadoc)
078     * 
079     * @see com.izforge.izpack.compiler.CompilerListener#BeforePack(com.izforge.izpack.compiler.Compiler.Pack,
080     * int, com.izforge.izpack.compiler.Packager)
081     */
082    public void beforePack(PackInfo pack, int packNumber, Packager packager)
083    {
084    }
085
086    /*
087     * (non-Javadoc)
088     * 
089     * @see com.izforge.izpack.compiler.CompilerListener#notify(java.lang.String, int,
090     * net.n3.nanoxml.XMLElement, com.izforge.izpack.compiler.Packager)
091     */
092    public void notify(String position, int state, XMLElement data, Packager packager)
093    {
094    }
095
096}