1 16 17 package org.apache.axis.components.compiler; 18 19 import org.apache.axis.AxisProperties; 20 import org.apache.axis.components.logger.LogFactory; 21 import org.apache.axis.utils.Messages; 22 import org.apache.commons.logging.Log; 23 24 25 31 public class CompilerFactory { 32 protected static Log log = 33 LogFactory.getLog(CompilerFactory.class.getName()); 34 35 static { 36 AxisProperties.setClassOverrideProperty(Compiler .class, "axis.Compiler"); 37 38 AxisProperties.setClassDefault(Compiler .class, 39 "org.apache.axis.components.compiler.Javac"); 40 } 41 42 public static Compiler getCompiler() { 43 Compiler compiler = (Compiler )AxisProperties.newInstance(Compiler .class); 44 45 48 if (compiler == null) { 49 log.debug(Messages.getMessage("defaultCompiler")); 50 compiler = new Javac(); 51 } 52 53 log.debug("axis.Compiler:" + compiler.getClass().getName()); 54 55 return compiler; 56 } 57 } 58 | Popular Tags |