*
* @return The new {@link ComponentFactory}.
*/
protected ComponentFactory createFactory() {
// Create it...
ComponentFactory factory = null;
try {
Class cls = Util.loadClass(_factoryClass, this);
factory = (ComponentFactory) cls.newInstance();
} catch (ClassNotFoundException ex) {
throw new RuntimeException(ex);
} catch (InstantiationException ex) {
throw new RuntimeException(ex);
} catch (IllegalAccessException ex) {
throw new RuntimeException(ex);
}
// Set the extraInfo if any...
if (_extraInfo != null) {
factory.setExtraInfo(_extraInfo);
}
// Return the new ComponentFactory
return factory;
}