@Component @Alls public class PayStrategyFactory{ private final Map<String,PayStrategy> strategies; }