| |
|
| org.netbeans.spi.mobility.cldcplatform.CustomCLDCPlatformConfigurator
CustomCLDCPlatformConfigurator | public interface CustomCLDCPlatformConfigurator (Code) | | CustomCLDCPlatformConfigurator is an SPI for service providing information about some non-standard CLDC platform (SDK, emulator).
This interface has to be implemented and registered in module META-INF/services/org.netbeans.spi.mobility.cldcplatform.CustomCLDCPlatformConfigurator
#position=xx attribute of the registration is important if two different CustomCLDCPlatformConfigurator implementation recognize the same platform.
author: Adam Sotona |
Method Summary | |
public CLDCPlatformDescriptor | getPlatform(File platformPath) This method is called when the previous for deep detection of the platform.
The method should return full platform descriptor or null.
Parameters: platformPath - Given platform home for the detection. | public String | getRegistryProviderName() Optional method helping the automated platforms detection using Windows registry. | public boolean | isPossiblePlatform(File platformPath) This method must provide just quick answer if the given folder might be a home for a platform recognized by this configurator.
This method is not intended to perform any deep detection.
The best way is to just check for any unique files inside.
Parameters: platformPath - Given platform home directory to query. |
getPlatform | public CLDCPlatformDescriptor getPlatform(File platformPath)(Code) | | This method is called when the previous for deep detection of the platform.
The method should return full platform descriptor or null.
Parameters: platformPath - Given platform home for the detection. CLDCPlatformDescriptor with full information about the platform or null. |
getRegistryProviderName | public String getRegistryProviderName()(Code) | | Optional method helping the automated platforms detection using Windows registry.
If the platform installer stores any keys pointing to the platform installation directory then this method is usefull.
Usual pattern is to store such information somewhere under HKEY_LOCAL_MACHINE/Software/<provider name> or HKEY_CURRENT_USER/Software/<provider name>
Part of the provider name that may help to locate registry key with reference to the platform installation (f.ex.: Nokia) |
isPossiblePlatform | public boolean isPossiblePlatform(File platformPath)(Code) | | This method must provide just quick answer if the given folder might be a home for a platform recognized by this configurator.
This method is not intended to perform any deep detection.
The best way is to just check for any unique files inside.
Parameters: platformPath - Given platform home directory to query. True if this configurator recognizes the folder as possible known platform home directory. |
|
|
|