implemented resolving services by parameter-defined type