留言板

RE: Intercepting *LocalServiceImpl with AOP

thumbnail
Shagul Khaja,修改在14 年前。

RE: Intercepting *LocalServiceImpl with AOP

Liferay Master 帖子: 758 加入日期: 07-9-27 最近的帖子
What are you trying to achieve? Provide your own implementation of the bean? Or use AOP to return something else? You may want to post your configuration.

When you say, "I'm wondering if, in 5.2.5, it is possible", are you having issues upgrading your existing code?
Samuel Garcia Martinez,修改在14 年前。

RE: Intercepting *LocalServiceImpl with AOP

New Member 帖子: 4 加入日期: 08-3-28 最近的帖子
I want to override some functions of this service. Looking blog entries i've found some help about it: liferay service hooks can override *LocalService implementations without have to hack LPortal code.

Is it a correct approach?
thumbnail
Shagul Khaja,修改在14 年前。

RE: Intercepting *LocalServiceImpl with AOP

Liferay Master 帖子: 758 加入日期: 07-9-27 最近的帖子
Yes. You should use hooks to override the methods needed.

The improvement mentioned in the below ticket was backported to 5.2.x

http://issues.liferay.com/browse/LPS-5137

Check your liferay-hook_5_2_0.dtd in portal source. Looks like the above improvement made it to 5.2 EE SP2 (5.2.6).

If you are not able to use hooks in your Liferay version, you can use the ext approach from the below post.


http://www.liferay.com/community/forums/-/message_boards/message/4409863

Best Regards,
Shagul