autowire by name and type