掲示板

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

thumbnail
6年前 に Abhishek Jain によって更新されました。

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

Regular Member 投稿: 226 参加年月日: 16/08/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
6年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
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
6年前 に Abhishek Jain によって更新されました。

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

Regular Member 投稿: 226 参加年月日: 16/08/20 最新の投稿
Thanks David.. emoticon