| java.lang.Object com.sun.midp.content.RegistryInstaller
RegistryInstaller | final class RegistryInstaller (Code) | | Support for parsing attributes and installing from the
manifest or application descriptors.
|
Method Summary | |
void | install() Performs static installation (registration) the application
to handle the specified type and to provide a set of actions. | int | preInstall(AppProxy appl) Parse the ContentHandler attributes and check for errors. | static String[] | split(String string, char delim) Split the values in a field by delimiter and return a string array. | static void | uninstallAll(int suiteId, boolean update) Performs static uninstallation (unregistration) of the application. |
install | void install()(Code) | | Performs static installation (registration) the application
to handle the specified type and to provide a set of actions.
exception: InvalidJadException - if there is a content handlersIDs conflict |
preInstall | int preInstall(AppProxy appl) throws ContentHandlerException, ClassNotFoundException(Code) | | Parse the ContentHandler attributes and check for errors.
- Parse attributes into set of ContentHandlers.
- If none, return
- Check for permission to install handlers
- Check each for simple invalid arguments
- Check each for MIDlet is registered
- Check each for conflicts with other application registrations
- Find any current registrations
- Remove current dynamic registrations from set to be removed
- Check and resolve any conflicts between static and curr dynamic
Parameters: appl - the AppProxy context with one or more applications number of handlers prepared for installation. exception: IllegalArgumentException - if there is no classname field,or if there are more than five comma separated fields on the line. exception: NullPointerException - if missing components exception: ContentHandlerException - if handlers are ambiguous exception: ClassNotFoundException - if an application class cannot be found exception: SecurityException - if not allowed to register |
split | static String[] split(String string, char delim)(Code) | | Split the values in a field by delimiter and return a string array.
Parameters: string - the string containing the values Parameters: delim - the delimiter that separates the values a String array of the values; must be null |
uninstallAll | static void uninstallAll(int suiteId, boolean update)(Code) | | Performs static uninstallation (unregistration) of the application.
Parameters: suiteId - suite ID to be unregistered Parameters: update - flag indicated whether the given suite is about remove orupdate |
|
|