org.ow2.util.event.api.IEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of util-event-api Show documentation
Show all versions of util-event-api Show documentation
API for a generic event module.
The newest version!
/**
* OW2 Util
* Copyright (C) 2008 Bull S.A.S.
* Contact: [email protected]
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* --------------------------------------------------------------------------
* $Id: IEvent.java 4389 2008-12-15 13:48:57Z alitokmen $
* --------------------------------------------------------------------------
*/
package org.ow2.util.event.api;
/**
* Define the base interface for an event.
* As listeners may be executed in concurrency, implementations exposing writable attributes MUST be thread safe.
* The event developer MUST implement a security mechanism if the event expose critical values, or references.
* @author missonng
*/
public interface IEvent {
/**
* Check whether the event listener has permission to receive this event.
* @param eventListener The event listener to check.
* @return True if the listener has the permission, false otherwise.
*/
boolean checkPermission(IEventListener eventListener);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy