【发布时间】:2009-12-23 14:24:20
【问题描述】:
有几个关于 j2me 模式的出版物:
Architectural manifesto: The MVC design pattern in MIDP development by Mikko Kontio
Identification of Design Patterns for Mobile Services with J2ME by J. Narsoo and N. Mohamudally
Big designs for small devices by By Ben Hui
我有时使用的模式:
MVC - 将 UI 与控制器类和数据结构分开,可能有助于在不同平台上重用代码
命令 - 在用户交互和应用程序工作流程中重用代码
界面 - 简化多个组件的使用(例如不同类型的连接或数据存储)和组件测试(请参阅 Blackberry - change latitude and longitude on the device to test app)
Observer 也可用于 UI 更新任务(请参阅 sample with HttpRequest)
您最喜欢 J2ME/BlackBerry 中的哪些模式?
【问题讨论】:
标签: blackberry java-me design-patterns