dbProperties.getProperty("connectorProvider",
"com.germinus.mashupbuilder.dao.connection.StandardConnectorProvider");
Class provicerClass = Class.forName(provicerClassName);
connectionProvider = (ConnectorProvider) provicerClass.newInstance();
} catch (InstantiationException ex) {
throw new DAOException("The Connection Provider cannot be instantiated", ex);
} catch (IllegalAccessException ex) {
throw new DAOException("The Connection Provider cannot be instantiated", ex);
} catch (ClassNotFoundException ex) {
throw new DAOException("The Connection Provider cannot be instantiated", ex);
} catch (IOException ex) {
throw new DAOException("Database configuration file is not found", ex);
}
}
return connectionProvider;
}