|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
|---|
static final int ADDED
static final int REMOVED
static final int UPDATED
static final int SOURCE_XML
static final int SOURCE_SERVICE
MetaTypeProvider service.
| Method Detail |
|---|
void metaDataChanged(int event,
long bundleId,
java.lang.String type,
java.lang.String pid,
java.lang.String version,
int sourceType)
MetaDataManager service should
notify the interested MetaDataListener instances by calling
this method.
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 versionsourceType - The source of the event: SOURCE_XML
or SOURCE_SERVICE.MetaDataManager
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||