com.jeesuite.spring.helper.EnvironmentHelper Maven / Gradle / Ivy
package com.jeesuite.spring.helper;
import org.springframework.core.env.Environment;
import com.jeesuite.spring.InstanceFactory;
public class EnvironmentHelper {
private static Environment environment;
public static String getProperty(String key){
if(environment == null){
synchronized (EnvironmentHelper.class) {
environment = InstanceFactory.getInstance(Environment.class);
}
}
return environment.getProperty(key);
}
}