O'Reilly logo

Liferay Portal Systems Development by Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Class loader proxy

Class loader proxy would be useful to share plugins services among different plugins. For example, let's say you have two plugins, chat-portlet and knowledge-base-portlet. Each one has its own WAR file. One of them, let's say chat-portlet, has a service named StatusLocalService and the service layer StatusLocalServiceUtil. Moreover, the second portlet, let's say knowledge-base-portlet, needs to use the service StatusLocalServiceUtil.getStatuses in order to find out who is online or offline. The class loader proxy class can achieve these requirements easily.

Note

Note that the portal core and built-in portlets services were deployed on an application server global lib, while the plugin services were deployed on the plugin's lib ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required