【问题标题】:J2ME - BlackBerry - design patternsJ2ME - 黑莓 - 设计模式
【发布时间】: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


    【解决方案1】:

    如何使用 Singleton 来处理设置/配置.. 和工厂模式来涵盖 UI 主题(例如)。我也是开发黑莓的新手,我发现很难知道哪种模式适合一种或另一种情况。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多