anon.infoservice
Class InfoServiceHolderMessage

java.lang.Object
  extended by anon.util.AbstractMessage
      extended by anon.infoservice.InfoServiceHolderMessage

public class InfoServiceHolderMessage
extends AbstractMessage

This is the message implementation used for InfoServiceHolder messages. It is used from the instance of the InfoServiceHolder class to notify their observers about some events (like changes of the preferred infoservice). The message code identifies the reason of the notification.


Field Summary
static int INFOSERVICE_MANAGEMENT_CHANGED
          This message is sent after the policy for automatic infoservice changes has been changed.
static int PREFERRED_INFOSERVICE_CHANGED
          This message is sent after the preferred infoservice was changed.
 
Constructor Summary
InfoServiceHolderMessage(int a_messageCode)
          This creates a new InfoServiceHolderMessage.
InfoServiceHolderMessage(int a_messageCode, java.lang.Object a_messageData)
          This creates a new InfoServiceHolderMessage.
 
Method Summary
 
Methods inherited from class anon.util.AbstractMessage
getMessageCode, getMessageData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERRED_INFOSERVICE_CHANGED

public static final int PREFERRED_INFOSERVICE_CHANGED
This message is sent after the preferred infoservice was changed. The appended object is the InfoServiceDBEntry of the new preferred infoservice.

See Also:
Constant Field Values

INFOSERVICE_MANAGEMENT_CHANGED

public static final int INFOSERVICE_MANAGEMENT_CHANGED
This message is sent after the policy for automatic infoservice changes has been changed. The appended object is a Boolean with the new change policy (true, if automatic changes of the infoservices including the preferred infoservice are possible in case of failure or false, if only the pererred infoservice is used all the time).

See Also:
Constant Field Values
Constructor Detail

InfoServiceHolderMessage

public InfoServiceHolderMessage(int a_messageCode)
This creates a new InfoServiceHolderMessage. The message data is set to null.

Parameters:
a_messageCode - The message code. See the constants in this class.

InfoServiceHolderMessage

public InfoServiceHolderMessage(int a_messageCode,
                                java.lang.Object a_messageData)
This creates a new InfoServiceHolderMessage.

Parameters:
a_messageCode - The message code. See the constants in this class.
a_messageData - The data to send with the message.