class ProcessorFactoryOfSolon implements ProcessorFactory {

    private static final Logger log = LoggerFactory.getLogger(ProcessorFactoryOfSolon.class);

    private final AppContext context;

    public ProcessorFactoryOfSolon(AppContext context) {
        this.context = context;
    }

    @Override
    public Set<String> supportTypes() {
        return Sets.newHashSet(ProcessorType.BUILT_IN.name());
    }

    @Override
    public ProcessorBean build(ProcessorDefinition processorDefinition) {
        try {
            BasicProcessor bean = getBean(processorDefinition.getProcessorInfo());
            return new ProcessorBean()
                    .setProcessor(bean)
                    .setClassLoader(bean.getClass().getClassLoader());
        } catch (Exception e) {
            log.warn("[ProcessorFactory] load by ProcessorFactoryOfSolon failed. If you are using Solon, make sure this bean was managed by Solon", e);
            return null;
        }
    }

    private BasicProcessor getBean(String name) throws Exception {<FILL_FUNCTION_BODY>}
}

        //尝试找 CloudJobHandler 实例
        BasicProcessor processorProxy = JobManager.getJob(name);

        if (processorProxy != null) {
            return processorProxy;
        }

        //尝试找 BasicProcessor 原生实例
        BeanWrap beanWrap = JobBeanManager.getJob(name);

        if (beanWrap == null) {
            throw new IllegalStateException("[ProcessorFactory] Missing processor info： " + name);
        }

        return beanWrap.get();
    
<no_super_class>