Component for automatic registration of services in DI