Version: 1.1.1

org.biomoby.shared.event
Interface Notifier

All Known Subinterfaces:
CentralCached
All Known Implementing Classes:
CentralCachedCallsImpl, CentralDigestCachedImpl, CentralDigestCachedSimpleImpl, CentralDigestImpl, RegistryModel

public interface Notifier

Version:
$Id: Notifier.java,v 1.9 2006/02/19 18:42:57 senger Exp $
Author:
Martin Senger

Field Summary
static int AUTHORITIES_CANCELLED
           
static int AUTHORITIES_COUNT
           
static int AUTHORITIES_END
           
static int AUTHORITIES_RESET
           
static int AUTHORITIES_START
           
static int AUTHORITIES_UPDATED
           
static int AUTHORITY_LOADED
           
static int AUTHORITY_LOADING
           
static int DATA_TYPE_LOADED
           
static int DATA_TYPE_LOADING
           
static int DATA_TYPES_CANCELLED
           
static int DATA_TYPES_COUNT
           
static int DATA_TYPES_END
           
static int DATA_TYPES_RESET
           
static int DATA_TYPES_START
           
static int DATA_TYPES_UPDATED
           
static int NAMESPACE_LOADED
           
static int NAMESPACE_LOADING
           
static int NAMESPACES_CANCELLED
           
static int NAMESPACES_COUNT
           
static int NAMESPACES_END
           
static int NAMESPACES_RESET
           
static int NAMESPACES_START
           
static int NAMESPACES_UPDATED
           
static int SERVICE_TYPE_LOADED
           
static int SERVICE_TYPE_LOADING
           
static int SERVICE_TYPES_CANCELLED
           
static int SERVICE_TYPES_COUNT
           
static int SERVICE_TYPES_END
           
static int SERVICE_TYPES_RESET
           
static int SERVICE_TYPES_START
           
static int SERVICE_TYPES_UPDATED
           
static int SIGNAL_CANCEL_DATA_TYPES
           
static int SIGNAL_CANCEL_NAMESPACES
           
static int SIGNAL_CANCEL_SERVICE_TYPES
           
static int SIGNAL_CANCEL_SERVICES
           
 
Method Summary
 void addNotificationListener(NotificationListener l)
          Adds the specified notification listener to receive notification events from the class that implements this interface.
 void addNotificationListeners(NotificationListener[] l)
          Adds the specified notification listeners to receive notification events from the class that implements this interface.
 void callback(int callbackSignal)
          Call the notifier and signal that it can stop loading data (or whatever it is doing).
 void fireEvent(int type, Object message, Object details)
           
 void fireEvent(NotificationEvent event)
           
 NotificationListener[] getNotificationListeners()
          Returns an array of all the NotificationListeners added to the class that implements this interface.
 void removeNotificationListener(NotificationListener l)
          Removes the specified notification listener so that it no longer receives notification events from the class that implements this interface.
 void removeNotificationListeners(NotificationListener[] l)
          Removes the specified notification listeners so that they no longer receive notification events from the class that implements this interface.
 

Field Detail

DATA_TYPES_START

static final int DATA_TYPES_START
See Also:
Constant Field Values

DATA_TYPES_COUNT

static final int DATA_TYPES_COUNT
See Also:
Constant Field Values

DATA_TYPE_LOADING

static final int DATA_TYPE_LOADING
See Also:
Constant Field Values

DATA_TYPE_LOADED

static final int DATA_TYPE_LOADED
See Also:
Constant Field Values

DATA_TYPES_END

static final int DATA_TYPES_END
See Also:
Constant Field Values

SERVICE_TYPES_START

static final int SERVICE_TYPES_START
See Also:
Constant Field Values

SERVICE_TYPES_COUNT

static final int SERVICE_TYPES_COUNT
See Also:
Constant Field Values

SERVICE_TYPE_LOADING

static final int SERVICE_TYPE_LOADING
See Also:
Constant Field Values

SERVICE_TYPE_LOADED

static final int SERVICE_TYPE_LOADED
See Also:
Constant Field Values

SERVICE_TYPES_END

static final int SERVICE_TYPES_END
See Also:
Constant Field Values

NAMESPACES_START

static final int NAMESPACES_START
See Also:
Constant Field Values

NAMESPACES_COUNT

static final int NAMESPACES_COUNT
See Also:
Constant Field Values

NAMESPACE_LOADING

static final int NAMESPACE_LOADING
See Also:
Constant Field Values

NAMESPACE_LOADED

static final int NAMESPACE_LOADED
See Also:
Constant Field Values

NAMESPACES_END

static final int NAMESPACES_END
See Also:
Constant Field Values

AUTHORITIES_START

static final int AUTHORITIES_START
See Also:
Constant Field Values

AUTHORITIES_COUNT

static final int AUTHORITIES_COUNT
See Also:
Constant Field Values

AUTHORITY_LOADING

static final int AUTHORITY_LOADING
See Also:
Constant Field Values

AUTHORITY_LOADED

static final int AUTHORITY_LOADED
See Also:
Constant Field Values

AUTHORITIES_END

static final int AUTHORITIES_END
See Also:
Constant Field Values

DATA_TYPES_RESET

static final int DATA_TYPES_RESET
See Also:
Constant Field Values

SERVICE_TYPES_RESET

static final int SERVICE_TYPES_RESET
See Also:
Constant Field Values

NAMESPACES_RESET

static final int NAMESPACES_RESET
See Also:
Constant Field Values

AUTHORITIES_RESET

static final int AUTHORITIES_RESET
See Also:
Constant Field Values

DATA_TYPES_CANCELLED

static final int DATA_TYPES_CANCELLED
See Also:
Constant Field Values

SERVICE_TYPES_CANCELLED

static final int SERVICE_TYPES_CANCELLED
See Also:
Constant Field Values

NAMESPACES_CANCELLED

static final int NAMESPACES_CANCELLED
See Also:
Constant Field Values

AUTHORITIES_CANCELLED

static final int AUTHORITIES_CANCELLED
See Also:
Constant Field Values

DATA_TYPES_UPDATED

static final int DATA_TYPES_UPDATED
See Also:
Constant Field Values

SERVICE_TYPES_UPDATED

static final int SERVICE_TYPES_UPDATED
See Also:
Constant Field Values

NAMESPACES_UPDATED

static final int NAMESPACES_UPDATED
See Also:
Constant Field Values

AUTHORITIES_UPDATED

static final int AUTHORITIES_UPDATED
See Also:
Constant Field Values

SIGNAL_CANCEL_DATA_TYPES

static final int SIGNAL_CANCEL_DATA_TYPES
See Also:
Constant Field Values

SIGNAL_CANCEL_SERVICE_TYPES

static final int SIGNAL_CANCEL_SERVICE_TYPES
See Also:
Constant Field Values

SIGNAL_CANCEL_SERVICES

static final int SIGNAL_CANCEL_SERVICES
See Also:
Constant Field Values

SIGNAL_CANCEL_NAMESPACES

static final int SIGNAL_CANCEL_NAMESPACES
See Also:
Constant Field Values
Method Detail

addNotificationListener

void addNotificationListener(NotificationListener l)
Adds the specified notification listener to receive notification events from the class that implements this interface.

Parameters:
l - notification listener to be added

addNotificationListeners

void addNotificationListeners(NotificationListener[] l)
Adds the specified notification listeners to receive notification events from the class that implements this interface.

Parameters:
l - notification listeners to be added

removeNotificationListener

void removeNotificationListener(NotificationListener l)
Removes the specified notification listener so that it no longer receives notification events from the class that implements this interface.

Parameters:
l - notification listener to be removed

removeNotificationListeners

void removeNotificationListeners(NotificationListener[] l)
Removes the specified notification listeners so that they no longer receive notification events from the class that implements this interface.

Parameters:
l - notification listeners to be removed

getNotificationListeners

NotificationListener[] getNotificationListeners()
Returns an array of all the NotificationListeners added to the class that implements this interface.

Returns:
all of the NotificationListeners added or an empty array if no listeners have been added

callback

void callback(int callbackSignal)
Call the notifier and signal that it can stop loading data (or whatever it is doing).

Parameters:
callbackSignal - identifies what to stop doing (some usual values of this signal are defined elsewhere in this interface with names starting by SIGNAL_)

fireEvent

void fireEvent(int type,
               Object message,
               Object details)

fireEvent

void fireEvent(NotificationEvent event)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010