Forums de discussion

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

thumbnail
Abhishek Jain, modifié il y a 6 années.

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

Regular Member Publications: 226 Date d'inscription: 20/08/16 Publications récentes
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, modifié il y a 6 années.

RE: How to divide a module into -api,-web,-service modules further? (Réponse)

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 6 années.

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

Regular Member Publications: 226 Date d'inscription: 20/08/16 Publications récentes
Thanks David.. emoticon