fulmine.model.container.events
Class RemoteContainerCreatedEvent

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

public final class RemoteContainerCreatedEvent
extends AbstractSystemEvent

Raised when a remote IContainer has been created. The container is created in this local context but represents a container in a remote context.

This is an ISystemEvent and listeners for these events need to be instances of ISystemEventListener. The listener should be registered against the IEventSource returned from IEventManager.getSystemEventSource(Class).

Author:
Ramon Servadei

Constructor Summary
RemoteContainerCreatedEvent(String remoteContextIdentity, IEventManager context, IContainer container)
          Standard constructor
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
 IContainer getContainer()
          Get the container that has been created
 String getRemoteContextIdentity()
          Get the identity of the remote context of the remote container that has been created
 
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

RemoteContainerCreatedEvent

public RemoteContainerCreatedEvent(String remoteContextIdentity,
                                   IEventManager context,
                                   IContainer container)
Standard constructor

Parameters:
remoteContextIdentity - the identity of the remote context that the remote container originates from
context - the context for event operations
container - the remote container that has been created
Method Detail

getContainer

public IContainer getContainer()
Get the container that has been created

Returns:
the IContainer that has been created

getRemoteContextIdentity

public String getRemoteContextIdentity()
Get the identity of the remote context of the remote container that has been created

Returns:
the identity of the remote context

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.