HHH-10427 Make sure to cache Provided services in the fast-access map as well
This commit is contained in:
parent
f7174c9207
commit
dfa3f52e25
|
@ -205,10 +205,9 @@ public abstract class AbstractServiceRegistryImpl
|
||||||
service = serviceBinding.getService();
|
service = serviceBinding.getService();
|
||||||
if ( service == null ) {
|
if ( service == null ) {
|
||||||
service = initializeService( serviceBinding );
|
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;
|
return service;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue