Hi Hiran,
The EXT Plugin is used to extend or modify Liferay's core and not to create new applications or functionality.
Hiran Chaudhuri:
1) My idea is that portlet plugins may carry custom applications. What if this application requires some hooks?
Yes, portlet plugins can contain multiple portlet applications. A portlet plugin may also contain hooks. To see an example of this, take a look at the Social Networking Portlet.
Hiran Chaudhuri:
2) What is the recommended way to implement some data model (ServiceBuilder classes) that can be used in portlets and hooks likewise? Somehow I'm getting unsure about the classpath.
Services can be created in Portlet Plugins or Hook Plugins. If you are creating a Service that will be used by several different plugins (different .wars) there are two options.
1) Copy the service.jar that is created by Service Builder to each of the other plugin's lib directory.
2) Copy the service.jar to the app server's global classpath. If you do this, be sure to remove it form its original location in the plugin.
Hope this helps to clear things up for you.
Please sign in to flag this as inappropriate.