|Oracle® Java ME Embedded Application Management System API Guide
This chapter introduces the Suite Storage Manager. The Suite Storage Manager and its associated classes provide the primary interface for accessing all application, library, and link suites that are stored on the system.
SuiteStoreManager interface is obtained from the
AmsFactory class and provides the main access to the applications, libraries, and links that have been installed on the AMS. Using the methods in this interface, the programmer can query against a suite for a specific name, vendor, or suite type. In addition, the programmer can install a listener that listens for changes in the suite storage.
SuiteStoreManager interface has the following methods:
SuiteInfo getSuiteInfo(java.lang.String vendor, java.lang.String name)
This method returns a
SuiteInfo descriptor of installed suite, given the name of the vendor and the suite. See "SuiteInstaller Interface" for more information on the
SuiteInfo getSuites(int types)
void setStatusListener(SuiteStoreListener theListener)
SuiteStoreListener is an interface that is used to monitor changes to the suite storage. There are five methods that are called by the
SuiteStoreManager to indicate that the state of a suite is changing. Each method passes in the
SuiteInfo descriptor of the app, library, or link in question.
void notifySuiteInstalled(SuiteInfo suite)
void notifySuiteRemoved(SuiteInfo suite)
SuiteInstallerProgressListener notifySuiteInstalling(SuiteInfo suite)
This method is called to notify a listener that a suite is installing. The method must return an instance of
SuiteInstallerProgressListener to be notified about installation process, or
null if no notifications are required.
void notifySuiteSettingsChanged(SuiteInfo suite)
void notifySuiteStateChanged(SuiteInfo suite)