FileDocCategorySizeDatePackage
CompilerFactory.javaAPI DocApache Axis 1.41902Sat Apr 22 18:57:28 BST 2006org.apache.axis.components.compiler

CompilerFactory

public class CompilerFactory extends Object
This class implements a factory to instantiate a Compiler.
author
Davanum Srinivas
author
Stefano Mazzocchi
since
2.0

Fields Summary
protected static Log
log
Constructors Summary
Methods Summary
public static CompilergetCompiler()


     
        AxisProperties.setClassOverrideProperty(Compiler.class, "axis.Compiler");

        AxisProperties.setClassDefault(Compiler.class,
                                       "org.apache.axis.components.compiler.Javac");
    
        Compiler compiler = (Compiler)AxisProperties.newInstance(Compiler.class);
        
        /**
         * This shouldn't be needed, but seems to be a common feel-good:
         */
        if (compiler == null) {
            log.debug(Messages.getMessage("defaultCompiler"));
            compiler = new Javac();
        }

        log.debug("axis.Compiler:" + compiler.getClass().getName());

        return compiler;