SunSPOT API V3.0


com.sun.spot.peripheral.ota
Interface IOTACommandProcessorExtension

All Known Implementing Classes:
OTAExtension

public interface IOTACommandProcessorExtension

IOTACommandProcessorExtension Any class that wants to install OTA commands (either additional commands or replacements/extensions for the default commands) must implement this interface. The class must also have a no-arg public constructor, and should be referenced in the manifest file of the library add-in jar that it is part of, with a line like this: "spot-ota-extension-"-my-library-addin: foo.bar.MyOTACommandProcessorExtension where ""spot-ota-extension-"-" is a required prefix.


Field Summary
static String OTA_COMMAND_PROCESSOR_EXTENSION_PREFIX
          The prefix that properties must have to identify classes that extend the SPOT admin command processor.
 
Method Summary
 void configureCommands(IOTACommandRepository repository)
          Call back invoked when command processor extensions are installed.
 

Field Detail

OTA_COMMAND_PROCESSOR_EXTENSION_PREFIX

static final String OTA_COMMAND_PROCESSOR_EXTENSION_PREFIX
The prefix that properties must have to identify classes that extend the SPOT admin command processor.

See Also:
Constant Field Values
Method Detail

configureCommands

void configureCommands(IOTACommandRepository repository)
Call back invoked when command processor extensions are installed. The receiver should add and replace commands using IOTACommandRepository.addCommand(String, IOTACommand)

Parameters:
repository - the repository to adjust

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.