ch.ethz.iks.r_osgi
Class RemoteServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ch.ethz.iks.r_osgi.RemoteServiceEvent
All Implemented Interfaces:
java.io.Serializable

public final class RemoteServiceEvent
extends java.util.EventObject

Remote service event class.

Author:
Jan S. Rellermeyer, ETH Zurich
See Also:
Serialized Form

Field Summary
static int MODIFIED
          The service got modified.
static int REGISTERED
          The service got registered.
static int UNREGISTERING
          The service is unregistering.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RemoteServiceEvent(int type, RemoteServiceReference remoteRef)
          create a new remote service event.
 
Method Summary
 RemoteServiceReference getRemoteReference()
          get the remote service reference.
 int getType()
          get the type of the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGISTERED

public static final int REGISTERED
The service got registered.

See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
The service got modified.

See Also:
Constant Field Values

UNREGISTERING

public static final int UNREGISTERING
The service is unregistering.

See Also:
Constant Field Values
Constructor Detail

RemoteServiceEvent

public RemoteServiceEvent(int type,
                          RemoteServiceReference remoteRef)
create a new remote service event.

Parameters:
type - the type of the event.
remoteRef - the remote service reference.
Method Detail

getType

public int getType()
get the type of the event.

Returns:
the type.

getRemoteReference

public RemoteServiceReference getRemoteReference()
get the remote service reference.

Returns:
the remote service reference.


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.