1 package org.codehaus.mojo.natives; 2 3 import java.util.Map; 4 5 public abstract class AbstractEnvFactory 6 implements EnvFactory 7 { 8 9 private static Map envs; 10 11 public synchronized Map getEnvironmentVariables() 12 throws NativeBuildException 13 { 14 if ( envs == null ) 15 { 16 envs = createEnvs(); 17 } 18 19 return envs; 20 } 21 22 protected abstract Map createEnvs() 23 throws NativeBuildException; 24 25 }