super.registerComponentInternal(component, name, nonVolatile);
}
}
private boolean isGlobal(Class clazz) {
Scopes componentScope = componentScopeLookup.get(clazz);
if (componentScope == null) {
// Because the detectScope call is not protected by a lock, we can end up doing duplicate work
// However this will happen rarely enough that we can afford to ignore the duplicate work.
componentScope = ScopeDetector.detectScope(clazz);
componentScopeLookup.put(clazz, componentScope);