All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jiuxian.boot.mossrose.autoconfigure.MossroseStarter Maven / Gradle / Ivy

There is a newer version: 1.2.1-RELEASE
Show newest version
package com.jiuxian.boot.mossrose.autoconfigure;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

import javax.annotation.PostConstruct;
import java.util.Map;

public class MossroseStarter implements ApplicationContextAware {

    private ApplicationContext applicationContext;

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext;
    }

    @PostConstruct
    private void init() {
        final Map jobBeans = applicationContext.getBeansWithAnnotation(Job.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy