Use the type save way of ComponentScan.