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

com.minlia.rocket.context.ContextHolder Maven / Gradle / Ivy

There is a newer version: 2.0.4.1.RELEASE
Show newest version
package com.minlia.rocket.context;

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

/**
 * @author will
 */
public class ContextHolder implements ApplicationContextAware {

  private static ApplicationContext applicatioContext;

  public static ApplicationContext getContext() {
    return ContextHolder.applicatioContext;
  }

  @Override
  public void setApplicationContext(ApplicationContext ctx) throws BeansException {
    ContextHolder.applicatioContext = ctx;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy