on 12-05-2014 12:20 PM
Hi experts!!
I'm working with hybris 5.3. I'm trying to overide abstractPopulatingConverter. Spting declration:
<alias name="myPopulatingConverter" alias="abstractPopulatingConverter"/>
<bean id="myPopulatingConverter" class="com.myextension.populators.MyPopulatingConverter" abstract="true" />
Java class:
public abstract class MyPopulatingConverter<SOURCE, TARGET> extends AbstractConverter<SOURCE, TARGET> implements
PopulatorList<SOURCE, TARGET>
{
private static final Logger LOG = Logger.getLogger(MyPopulatingConverter.class);
@Override
public TARGET convert(final SOURCE source) throws ConversionException
{
LOG.info("Overriding test");
return super.convert(source);
}
}
but when debugging it never enter to this method.
Note that this code works perfectly with hybris 5.2
The populator you are trying to override is probably appended to the Converter with its actual name instead of the alias like it should be. Try searching the hybris made -spring.xmls for the original definition and then find where its actual name is used. Same has happened to me earlier, just forgot which populator it was. You need to override the whole Converter definition to get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.