开发者

Are there guidelines for what code goes into com.myproject.api vs com.myproject.api.impl?

开发者 https://www.devze.com 2023-02-28 15:02 出处:网络
I\'ve seen this package structure pattern a number of times.Most recently, I\'ve been going through the Last.fm An开发者_如何学Cdroid app code and would like to understand why some code is in fm.last.

I've seen this package structure pattern a number of times. Most recently, I've been going through the Last.fm An开发者_如何学Cdroid app code and would like to understand why some code is in fm.last.api versus fm.last.api.impl. https://github.com/c99koder/lastfm-android/


The package fm.last.apicontains the interfaces that define the public interface. In the package fm.last.api.impl the actual implementation of this interface is located.

This is a rarely widely used approach to differentiate various concerns.

0

精彩评论

暂无评论...
验证码 换一张
取 消