Skip to Content
0
Former Member
Dec 15, 2015 at 12:41 PM

Autowiring not working in Hybris migration from 4.7 to 5.7

168 Views

Hello All,

We are working on hybris migration from 4.7 to 5.7 .

We have used Annotation based approach for dependancy injecttion.

Suppose I have class :

@Service(CustomDefaultUIAccessRightService.BEAN_NAME) @Scope(value = "tenant") public class CustomDefaultUIAccessRightService extends DefaultUIAccessRightService {

 @Autowired(required = true)
 @Override
 public void setUserService(final UserService userService)
 {
     super.setUserService(userService);
 }
 
 
 @Autowired(required = true)
 @Override
 public void setCockpitTypeService(final TypeService typeService)
 {
     super.setCockpitTypeService(typeService);
 }

.... . .... .....

}

Auto wiring is working fine for UserService - bean dependency injection . It is also working fine for ModelService , but It is not working fine for CockpitTypeService .

I think we are able to bind beans which are inside platform .but not which are outside platform . ( bocs Hybris has revamped it internal structure .)

Any Suggestion will be appreciated .