/** * Gets an instance of the <code>TraceEngineFactory</code> class using the given <code>String * </code> class name, and the standard <code>ClassLoader</code>> * * @param className the <code>String</code> name of the <code>Class</code> extending <code> * TraceEngineFactory</code> to load * @return an instance of the <code>TraceEngineFactory</code> * @throws FactoryException if there is an error loading the <code>TraceEngineFactory</code> class * or creating an instance from it. */ public static TraceEngineFactory newInstance(String className) throws FactoryException { return FactoryFinder.newInstance(className, TraceEngineFactory.class, null, true); }
/** * Gets an instance of the <code>TraceEngineFactory</code> class using the given <code>String * </code> class name, and <code>ClassLoader</code>> * * @param className the <code>String</code> name of the <code>Class</code> extending <code> * TraceEngineFactory</code> to load * @param classLoader the <code>ClassLoader</code> to use * @return an instance of the <code>TraceEngineFactory</code> * @throws FactoryException if there is an error loading the <code>TraceEngineFactory</code> class * or creating an instance from it. */ public static TraceEngineFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, TraceEngineFactory.class, classLoader, false); }