cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot override abstractSiteMapGenerator bean in Hybris.

0 Likes
243

Hello, I need to override a method 'render' from SiteMapMediaJob.java with a new implenetation.

Actually this method is performing in AbstractSiteMapGenerator.java

To try override this method I tryied to create new class which extends AbstractSiteMapGenerator.java and create there my new own implenetation of 'render' method.

In acceleratorservices-sprinx.xml I found a definition of bean 'abstractSiteMapGenerator.

To override this bean I create new bean in core-spring.xml with alias to this old bean.

After 'ant clean all' and restart server my application is still performs the old method from AbstractSiteMapGenerator.java....

What am I doing wrong? any suggestion how to implements this correctly?

Accepted Solutions (0)

Answers (0)