org.tanukisoftware.wrapper.event

Class WrapperEvent

Known Direct Subclasses:
WrapperControlEvent, WrapperCoreEvent, WrapperServiceEvent

public abstract class WrapperEvent
extends EventObject

WrapperEvents are used to notify WrapperEventListeners of various wrapper related events.

For performance reasons, some event instances may be reused by the code which fires them off. For this reason, references to the event should never be referenced outside the scope of the WrapperListener.processEvent method.

Version:
$Revision: 1.4 $
Author:
Leif Mortenson

Constructor Summary

WrapperEvent()
Creates a new WrapperEvent.

Method Summary

long
getFlags()
Returns a set of event flags for which the event should be fired.

Constructor Details

WrapperEvent

protected WrapperEvent()
Creates a new WrapperEvent.

Method Details

getFlags

public long getFlags()
Returns a set of event flags for which the event should be fired. This value is compared with the mask supplied when when a WrapperEventListener is registered to decide which listeners should receive the event.

If a subclassed, the return value of the super class should usually be ORed with any additional flags.

Returns:
a set of event flags.

Copyright 1999, 2006 Tanuki Software Inc., All Rights Reserved.