0ba3fffc_se___BlackBerry_Java_SDK___6_0__Description
[Feature] encapsulate functionality and provide it to external clients by using the Command Framework API [Description] 
You can encapsulate functionality so that it can be reused across your application and other applications on the device by using the Command Framework API that is provided in the net.rim.device.api.command and net.rim.device.api.command.registrar packages. For example, if your application has a button and a menu item that perform the same actions, you can define that common functionality once and reuse it across both UI components. In previous releases, you had to derive the functionality from each UI component which resulted in the multiple implementations of the same functionality. To use the Command Framework API, create a class that extends the CommandHandler abstract class, using the CommandHandler.execute() method to define the functionality of the command. Describe the command implemented by the CommandHandler by using the CommandMetadata class. You can run the command by using the Command class. You can also create commands that can be used by other applications on the device by using the classes and interfaces that are available in the net.rim.device.api.command.registrar package. For example, you can register a command by using the CommandRegistrarConnection interface and allow other applications to retrieve and execute the command from their application.
Utilities - New In This Release - BlackBerry Java SDK - 6.0