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

com.minlia.rocket.context.EnvironmentHolder 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.EnvironmentAware;
import org.springframework.core.env.Environment;

public class EnvironmentHolder implements EnvironmentAware {

  private static Environment environment;

  public static Environment getEnvironment() {
    return environment;
  }

  @Override
  public void setEnvironment(Environment env) throws BeansException {
    environment = env;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy