Framework Professional Edition Package


org.mbs.services.metatype
Interface MetaDataListener


public interface MetaDataListener

MetaDataListeners are registered in the MetaDataManager using the MetaDataManager.addMetaDataListener(MetaDataListener, String[]) method. They are called when a metatype, for which they registered to receive events, has been added, removed or modified.

When a listener is no more to receive metatype events it may be unregistered through the MetaDataManager.removeMetaDataListener(MetaDataListener) method.


Field Summary
static int ADDED
          Event type which signals that a new metatype is available.
static int REMOVED
          Event type which signals that the corresponding metatype is no move available.
static int SOURCE_SERVICE
          Source type which specifies that the corresponding metatype is provided by a MetaTypeProvider service.
static int SOURCE_XML
          Source type which specifies that the corresponding metatype is provided by a XML resource.
static int UPDATED
          Event type which signals that the corresponding metatype was modified.
 
Method Summary
 void metaDataChanged(int event, long bundleId, java.lang.String type, java.lang.String pid, java.lang.String version, int sourceType)
          When meta data changes the MetaDataManager service should notify the interested MetaDataListener instances by calling this method.
 

Field Detail

ADDED

static final int ADDED
Event type which signals that a new metatype is available.

See Also:
Constant Field Values

REMOVED

static final int REMOVED
Event type which signals that the corresponding metatype is no move available.

See Also:
Constant Field Values

UPDATED

static final int UPDATED
Event type which signals that the corresponding metatype was modified.

See Also:
Constant Field Values

SOURCE_XML

static final int SOURCE_XML
Source type which specifies that the corresponding metatype is provided by a XML resource.

See Also:
Constant Field Values

SOURCE_SERVICE

static final int SOURCE_SERVICE
Source type which specifies that the corresponding metatype is provided by a MetaTypeProvider service.

See Also:
Constant Field Values
Method Detail

metaDataChanged

void metaDataChanged(int event,
                     long bundleId,
                     java.lang.String type,
                     java.lang.String pid,
                     java.lang.String version,
                     int sourceType)
When meta data changes the MetaDataManager service should notify the interested MetaDataListener instances by calling this method.

Parameters:
event - The type of the event: ADDED, REMOVED or UPDATED.
bundleId - The bundle id of the meta data exporter.
type - The meta data type.
pid - The pid of the corresponing meta data.
version - The meta data version
sourceType - The source of the event: SOURCE_XML or SOURCE_SERVICE.
See Also:
MetaDataManager

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved