001    /*
002     Copyright (C) 2003 Adam Olsen
003     This program is free software; you can redistribute it and/or modify
004     it under the terms of the GNU General Public License as published by
005     the Free Software Foundation; either version 1, or (at your option)
006     any later version.
007     This program is distributed in the hope that it will be useful,
008     but WITHOUT ANY WARRANTY; without even the implied warranty of
009     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
010     GNU General Public License for more details.
011     You should have received a copy of the GNU General Public License
012     along with this program; if not, write to the Free Software
013     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
014     */
015    package com.valhalla.pluginmanager;
016    
017    /**
018     * All events fired in the plugin chain must inherit PluginEvent
019     * 
020     * @author Adam Olsen
021     * @created October 31, 2004
022     */
023    public class PluginEvent {
024        protected Object source;
025    
026        /**
027         * The default constructor
028         * 
029         * @param source
030         *            The source of this event
031         */
032        public PluginEvent(Object source) {
033            this.source = source;
034        }
035    
036        /**
037         * @return The source event
038         */
039        public Object getSource() {
040            return source;
041        }
042    }
043