Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Coding a Mobile Application : Mobile Designer-Provided Run-Time Classes : Migration to the New Run-Time based on the _NativeUIDemo_ example : Refactor access to Handlers
Refactor access to Handlers
The instance field has been removed from all handlers. Every direct access to the instance field must be replaced with the getInstance() method.
1. Replace AudioHandler.instance with AudioHandler.getInstance().
2. Replace CameraHandler.instance with CameraHandler.getInstance().
3. Replace ImageHandler.instance with ImageHandler.getInstance().
4. Replace TextHandler.instance with TextHandler.getInstance().
5. Replace ResourceHandler.instance with ResourceHandler.getInstance().
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback