com.jiuxian.boot.mossrose.autoconfigure.MossroseStarter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mossrose-spring-boot-starter Show documentation
Show all versions of mossrose-spring-boot-starter Show documentation
Spring boot starter for mossrose
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