org.eclipse.ecf.discovery
Class ServiceContainerEvent

java.lang.Object
  extended by org.eclipse.ecf.discovery.ServiceContainerEvent
All Implemented Interfaces:
IContainerEvent, Event, IServiceEvent
Direct Known Subclasses:
CompositeServiceContainerEvent

public class ServiceContainerEvent
extends java.lang.Object
implements IServiceEvent

Base event implementation of IServiceEvent. Subclasses may be created as appropriate.


Field Summary
protected  ID containerID
           
protected  IServiceInfo info
           
 
Constructor Summary
ServiceContainerEvent(IServiceInfo info, ID containerID)
           
 
Method Summary
 ID getLocalContainerID()
          Get ID of local discovery container (the discovery container receiving this event).
 IServiceInfo getServiceInfo()
          Get the service info associated with this event
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

protected IServiceInfo info

containerID

protected ID containerID
Constructor Detail

ServiceContainerEvent

public ServiceContainerEvent(IServiceInfo info,
                             ID containerID)
Method Detail

getServiceInfo

public IServiceInfo getServiceInfo()
Description copied from interface: IServiceEvent
Get the service info associated with this event

Specified by:
getServiceInfo in interface IServiceEvent
Returns:
IServiceInfo any info associated with this event. May be null.

getLocalContainerID

public ID getLocalContainerID()
Description copied from interface: IContainerEvent
Get ID of local discovery container (the discovery container receiving this event).

Specified by:
getLocalContainerID in interface IContainerEvent
Returns:
ID for local container. Will not return null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object