_requestExecutor,
providerConfig
.getProperties( ) );
break;
default:
throw new CouldNotCreateProviderException(
"Unsupported provider type, '"
+ providerConfig.getProviderType( ) + "'." );
}
}
catch ( ClassNotFoundException e1 )
{
throw new CouldNotCreateProviderException(
"Could not instantiate provider '"
+ providerConfig.getName( )
+ "' because no class of type '"
+ providerConfig.getImplConfig( ).getImpl( )
+ "' exists." );
}
catch ( NoSuchMethodException e2 )
{
throw new CouldNotCreateProviderException(
"Invalid constructor on class '"
+ providerConfig.getImplConfig( ).getImpl( )
+ "'." );
}
catch ( Throwable e )
{
throw new CouldNotCreateProviderException( e );
}
_registeredProviders.put( providerConfig.getName( ), provider );
return provider;
}