Skip to Content
0
May 15, 2016 at 10:06 AM

I have written PrepareInterceptor but it is not working please help.

198 Views

my method looks like this :

 public void onPrepare(final ShoppingInfoModel shoppingInfoModel, final InterceptorContext arg1) throws InterceptorException
 {
     if (shoppingInfoModel.getCode() == null)
     {
         shoppingInfoModel.setCode(keyGenerator.generate().toString());
         LOG.debug("Set new code for ShoppingInfo Model -" + shoppingInfoModel.getCode());
     }

 }