【发布时间】:2011-04-22 15:39:01
【问题描述】:
我已经多次看到这种包结构模式。最近,我一直在浏览 Last.fm Android 应用程序代码,想了解为什么有些代码在 fm.last.api 和 fm.last.api.impl 中。 https://github.com/c99koder/lastfm-android/
【问题讨论】:
标签: android api package structure
我已经多次看到这种包结构模式。最近,我一直在浏览 Last.fm Android 应用程序代码,想了解为什么有些代码在 fm.last.api 和 fm.last.api.impl 中。 https://github.com/c99koder/lastfm-android/
【问题讨论】:
标签: android api package structure
包fm.last.api包含定义公共接口的接口。这个接口的实际实现位于包fm.last.api.impl中。
这是一种很少被广泛使用的方法来区分各种关注点。
【讨论】:
fm.last.api 包含接口和类。这就是真正让我失望的原因。