public interface ApplicationMetadataProvider
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer observer)
Adds an observer to this application meta-data provider.
|
void |
deleteObserver(Observer observer)
Deletes an observer to this application meta-data provider.
|
ApplicationMetadata |
getApplicationMetadata(Application application)
Returns the meta-data of the given application or
null if the application has not meta-data. |
void |
setApplicationMetadata(Application application,
ApplicationMetadata applicationMetadata)
Links an application and it meta-data.
|
void addObserver(Observer observer) throws NullPointerException
The observer will be notified when the activities list will be modified.
observer
- an observer to be added.NullPointerException
- if the given observer is null
.Observable.addObserver(Observer)
,
setApplicationMetadata(Application, ApplicationMetadata)
void deleteObserver(Observer observer)
The observer will no longer be notified of this activities list modification.
observer
- an observer to be removed.Observable.deleteObserver(Observer)
ApplicationMetadata getApplicationMetadata(Application application)
null
if the application has not meta-data.application
- application whose meta-data is requested.null
.void setApplicationMetadata(Application application, ApplicationMetadata applicationMetadata) throws SecurityException
application
- the application to link.applicationMetadata
- the meta-data of the application.SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.