掲示板

Modifying(Extending,ext) portal-impl and portal-kernal Classes in Liferay 7

thumbnail
7年前 に Syed Ali によって更新されました。

Modifying(Extending,ext) portal-impl and portal-kernal Classes in Liferay 7

New Member 投稿: 15 参加年月日: 14/05/28 最新の投稿
I need to override some of the Java classes in the portal-impl and portal-kernal, is it possible in Liferay 7. how to accomplish the extending point in Liferay 7. Are there any references for overriding the Java classes such as ServicePreAction, LayoutTemplateLocalServiceImpl, TemplateProcessor in the portal-impl and portal-kernal?
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: Modifying(Extending,ext) portal-impl and portal-kernal Classes in Lifer

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
You should not try to modify these classes.

For ServicePreAction, you can write your own xxxPreAction class and specify your new class in 'servlet.service.events.pre' in portal-ext.properties.

For service classes, you should write a service wrapper.
thumbnail
7年前 に Syed Ali によって更新されました。

RE: Modifying(Extending,ext) portal-impl and portal-kernal Classes in Lifer

New Member 投稿: 15 参加年月日: 14/05/28 最新の投稿
Thanks Samuel,
The service wrapper reference was useful, i m trying to figure out are there any possibilities to modify the java classes i mentioned in the previous post, you mean the overriding of the java classes is not at all possible in liferay 7 or its not encouraged to override these classes?