* provide DataTransfer objects.
* @return A newly instantiated {@link DataTransfer} object.
*/
public static DataTransfer getDataTransferServiceFromFactory(
String serviceFactory) {
DataTransferFactory dataTransferFactory = null;
Class<DataTransferFactory> dataTransferFactoryClass = null;
try {
dataTransferFactoryClass = (Class<DataTransferFactory>) Class.forName(serviceFactory);
dataTransferFactory = dataTransferFactoryClass.newInstance();
return dataTransferFactory.createDataTransfer();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading data transfer factory class "
+ serviceFactory + " Message: " + e.getMessage());