fulmine.event.system
Class EventSourceNotObservedEvent

java.lang.Object
  extended by fulmine.event.AbstractEvent
      extended by fulmine.event.system.AbstractSystemEvent
          extended by fulmine.event.system.EventSourceNotObservedEvent
All Implemented Interfaces:
IEvent, ISystemEvent, IAddressable, IDescriptor, Cloneable

public final class EventSourceNotObservedEvent
extends AbstractSystemEvent

A system event raised when an IEventSource has no more IEventListener instances observing it.

Application code can register an ISystemEventListener to receive these events in order to stop servicing the affected event source.

Author:
Ramon Servadei
See Also:
EventSourceObservedEvent

Constructor Summary
EventSourceNotObservedEvent(String nativeContextIdentity, IEventManager context, IAddressable id)
          Standard constructor
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
 String getNativeContextIdentity()
          Get the identity of the context the IEventSource is native to; its local context
 
Methods inherited from class fulmine.event.system.AbstractSystemEvent
hideSourceFromToString
 
Methods inherited from class fulmine.event.AbstractEvent
clone, equals, getAddress, getDomain, getDrivingFrame, getFrame, getIdentity, getSource, getTriggerEvent, getType, hashCode, setAddress, setDrivingFrame, setFrame, setSource, setTriggerEvent, toDetailedString, toIdentityString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fulmine.event.IEvent
clone, getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent
 
Methods inherited from interface fulmine.IDescriptor
toDetailedString, toIdentityString
 
Methods inherited from interface fulmine.IAddressable
getAddress, getDomain, getIdentity, getType
 

Constructor Detail

EventSourceNotObservedEvent

public EventSourceNotObservedEvent(String nativeContextIdentity,
                                   IEventManager context,
                                   IAddressable id)
Standard constructor

Parameters:
nativeContextIdentity - the identity of the context the IEventSource is native to; its local context
context - the context the event is handled in
id - the identifiable instance
Method Detail

getNativeContextIdentity

public String getNativeContextIdentity()
Get the identity of the context the IEventSource is native to; its local context

Returns:
the identity of the context the event source is local to

getAdditionalToString

protected String getAdditionalToString()
Description copied from class: AbstractEvent
Delegate method for subclasses to provide additional toString information. This should be a comma separated string, e.g. "one, two, three"

Overrides:
getAdditionalToString in class AbstractSystemEvent
Returns:
the additional toString information in comma separated format


Copyright © 2007-2009. All Rights Reserved.