Extended service does not get invoked
Posted: Sun May 18, 2014 11:56 am
Hi all, what is the correct way to extend broadleaf service, in my case CatalogService.
none of these works for me:
http://www.broadleafcommerce.com/docs/c ... g-services
http://www.broadleafcommerce.com/docs/c ... s-tutorial
I tried to do this in three ways:
1. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And created bean like this:
<bean id="org.broadleafcommerce.core.catalog.service.CatalogService"
class="com.mycompany.core.catalog.service.MyCatalogServiceImpl"/>
2. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And created bean like this:
<bean id="blCatalogService"
class="com.mycompany.core.catalog.service.MyCatalogServiceImpl"/>
3. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And added annotation to MyCatalogServiceImpl:
@Service("blCatalogService")
None of these extensions works for me, original services got called every time.
What am I doing wrong here?
none of these works for me:
http://www.broadleafcommerce.com/docs/c ... g-services
http://www.broadleafcommerce.com/docs/c ... s-tutorial
I tried to do this in three ways:
1. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And created bean like this:
<bean id="org.broadleafcommerce.core.catalog.service.CatalogService"
class="com.mycompany.core.catalog.service.MyCatalogServiceImpl"/>
2. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And created bean like this:
<bean id="blCatalogService"
class="com.mycompany.core.catalog.service.MyCatalogServiceImpl"/>
3. I created MyCatalogServiceImpl file which extends CatalogServiceImpl and implements MyCatalogService;
And added annotation to MyCatalogServiceImpl:
@Service("blCatalogService")
None of these extensions works for me, original services got called every time.
What am I doing wrong here?