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 { 025 private Object source; 026 027 028 /** 029 * The default constructor 030 * 031 * @param source The source of this event 032 */ 033 public PluginEvent( Object source ) 034 { 035 this.source = source; 036 } 037 038 039 /** 040 * @return The source event 041 */ 042 public Object getSource() 043 { 044 return source; 045 } 046 } 047