留言板

How to divide a module into -api,-web,-service modules further?

thumbnail
Abhishek Jain,修改在6 年前。

How to divide a module into -api,-web,-service modules further?

Regular Member 帖子: 226 加入日期: 16-8-20 最近的帖子
I have created a large module with services and portlets together. I want to further divide it into -service,-api,-web modules. Can anyone give me any idea of what should be put into these submodules? In other words, I want to know the difference between -api,-service and -web modules? Please help...thanks in advance.
thumbnail
David H Nebinger,修改在6 年前。

RE: How to divide a module into -api,-web,-service modules further? (答复)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
api is normally just interfaces, utilities and simple classes that have no transitive dependencies.

The service is where all of the implementations of the things defined in the api are, this is where transitive dependencies will also be found but, because they are not part of the api, the dependencies are limited to the service.

web is the UI portion of your app. it will have portlet code, action handlers, jsp pages, verification logic for input data but otherwise little business logic. Here you might have one web module with multiple portlets or you could make separate web modules with individual portlets.






Come meet me at the 2017 LSNA!
thumbnail
Abhishek Jain,修改在6 年前。

RE: How to divide a module into -api,-web,-service modules further?

Regular Member 帖子: 226 加入日期: 16-8-20 最近的帖子
Thanks David.. emoticon