Jump to: navigation, search

Difference between revisions of "DSDP/MTJ/Discussion/New APIs/version 1.0/automatic SDK install"

< DSDP‎ | MTJ‎ | Discussion‎ | New APIs‎ | version 1.0
(New page: It would be nice to have a way to automatically "install" without the need to manually execute the import process. The idea is that there is an extension point that a SDK plug-in can imple...)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
It would be nice to have a way to automatically "install" without the need to manually execute the import process. The idea is that there is an extension point that a SDK plug-in can implement and return to MTJ the list of devices that are provided by it.
+
This API idea is to provide a mechanism to automatically register new SDKs devices once MTJ is started. The main user of this API are SDK Providers that wants to distribute a plugins that will automatically imports its SDKs. This avoid the need to the user to manually go to "Preverences->JavaME->Device Management" and import the device from the UI.
 +
 
 +
This API devices a extension point with the following format:
 +
*'''extension'''
 +
** <font color="green"><b>name</b></font> (String Attribute) <font color="#960018"><b>[OPTIONAL]</b></font><p>Description: Optional name of this extension</p>
 +
** <font color="green"><b>sequence [1;1]</b></font> (installer) <font color="#960018"><b>[REQUIRED]</b></font><p>Description: Sequence of 1..1 that represents the installer</p>
 +
 
 +
*'''installer'''
 +
** <font color="green"><b>name</b></font> (Java Attribute) <font color="#960018"><b>[REQUIRED]</b></font><p>Description: implements org.eclipse.mtj.core.sdk.ISDK.</p>
 +
 
 +
The ISDK interface is simple. it only provides 3 methods that need to be implemented by the SDK Provider:
 +
* <font color="green"><b>String getDescription()</b></font>: Returns the textual description of this SDK
 +
* <font color="green"><b>String getName()</b></font>: Returns the SDK name that is also presented on the Devices
 +
* <font color="green"><b>List<IDevice> getDeviceList()</b></font>: Returns a list of IDevices
 +
 
 +
Each SDK provider is responsible to know where its SDK is installed. This is necessary in order to create the Devices.
 +
 
 +
== Other Options, Opinions, etc ==
 +
 
 +
<font color="#960018"><center><b>[ Please, contribute with this discussion ]</b></center></font>

Latest revision as of 18:07, 17 March 2009

This API idea is to provide a mechanism to automatically register new SDKs devices once MTJ is started. The main user of this API are SDK Providers that wants to distribute a plugins that will automatically imports its SDKs. This avoid the need to the user to manually go to "Preverences->JavaME->Device Management" and import the device from the UI.

This API devices a extension point with the following format:

  • extension
    • name (String Attribute) [OPTIONAL]

      Description: Optional name of this extension

    • sequence [1;1] (installer) [REQUIRED]

      Description: Sequence of 1..1 that represents the installer

  • installer
    • name (Java Attribute) [REQUIRED]

      Description: implements org.eclipse.mtj.core.sdk.ISDK.

The ISDK interface is simple. it only provides 3 methods that need to be implemented by the SDK Provider:

  • String getDescription(): Returns the textual description of this SDK
  • String getName(): Returns the SDK name that is also presented on the Devices
  • List<IDevice> getDeviceList(): Returns a list of IDevices

Each SDK provider is responsible to know where its SDK is installed. This is necessary in order to create the Devices.

Other Options, Opinions, etc

[ Please, contribute with this discussion ]