implemented component resolution for components in the singleton scope