// TODO: later on we might allow the default view factory to be overridden by the user,
// via a config file or property.
ClassLoader classLoader = getClass().getClassLoader();
View2DCellFactory view2DCellFactory = null;
try {
Class clazz = Class.forName(VIEW2DCELL_FACTORY_CLASS_DEFAULT, true, classLoader);
Constructor constructor = clazz.getConstructor();
view2DCellFactory = (View2DCellFactory) constructor.newInstance();
} catch(Exception e) {
logger.severe("Error instantiating app base 2D cell view factory " +
VIEW2DCELL_FACTORY_CLASS_DEFAULT + ", Exception = " + e);
}
view2DCellFactory.initialize();
if (view2DCellFactory == null) {
logger.severe("Error instantiating app base 2D view cell factory " +
VIEW2DCELL_FACTORY_CLASS_DEFAULT);
} else {