package com.zehong.quartz.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author lenovo
 * @date 2025/6/25
 * @description TODO
 */
@Component
public class ApplicationContextProvider  implements ApplicationContextAware {
    private static ApplicationContext context;

    public static ApplicationContext getApplicationContext() {
        return context;
    }

    @Override
    public void setApplicationContext(ApplicationContext ac) {
        context = ac;
    }
}