What's the purpose: api.jar + impl.jar + bundle.jar?

前端 未结 4 1608
情歌与酒
情歌与酒 2021-01-12 02:47

I see many Java packages have api, impl and bundle jars (name-api.jar, name-impl.jar, name-bundle.jar). Could someone explain what those mean? Are all three needed by the ap

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 03:31

    api.jar contains API interfaces. These are interfaces as a contract that the implementation of the API should follow.

    impl.jar is the implementation of the api.jar. You can't just have the impl.jar without the api.jar.

    bundle.jar is the resources (if I'm not mistaken). Those are resources needed for the implementation code necessary to run.

提交回复
热议问题