HHH-10427 Make sure to cache Provided services in the fast-access map as well

This commit is contained in:
Sanne Grinovero 2016-06-07 16:49:36 +01:00 committed by Steve Ebersole
parent f7174c9207
commit dfa3f52e25
1 changed files with 2 additions and 3 deletions

View File

@ -205,10 +205,9 @@ public abstract class AbstractServiceRegistryImpl
service = serviceBinding.getService();
if ( service == null ) {
service = initializeService( serviceBinding );
// add the service only after it is completely initialized
initializedServiceByRole.put( serviceRole, service );
}
// add the service only after it is completely initialized
initializedServiceByRole.put( serviceRole, service );
return service;
}
}