package com.eactive.httpmockserver.common.util;

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


/**
 * ApplicationContextUtil 클래스
 *
 * @author
 * @version 1.0
 */
@Component("ApplicationContextUtil")
public class ApplicationContextUtil implements ApplicationContextAware {

    public static ApplicationContext getContext() {
        return context;
    }

    public static void setContext(ApplicationContext context) {
        ApplicationContextUtil.context = context;
    }

    private static ApplicationContext context;



    @SuppressWarnings("static-access")
    public void setApplicationContext(ApplicationContext context)
            throws BeansException {
        this.context = context;
    }

}
