use of org.mule.runtime.module.extension.soap.internal.loader.type.runtime.MessageDispatcherProviderTypeWrapper in project mule by mulesoft.
the class SoapModelLoaderDelegate method declare.
/**
* {@inheritDoc}
*/
public ExtensionDeclarer declare(ExtensionLoadingContext context) {
final SoapExtensionTypeWrapper<?> extension = getSoapExtensionType(this.extensionType, typeLoader);
List<MessageDispatcherProviderTypeWrapper> customTransportProviders = extension.getDispatcherProviders();
ExtensionDeclarer extensionDeclarer = getExtensionDeclarer(context);
declareSubtypes(extensionDeclarer, customTransportProviders);
Set<ErrorModel> soapErrors = getSoapErrors(extensionDeclarer);
soapErrors.forEach(extensionDeclarer::withErrorModel);
ConfigurationDeclarer configDeclarer = getConfigDeclarer(extensionDeclarer, extension, soapErrors);
extension.getSoapServiceProviders().forEach(provider -> serviceProviderDeclarer.declare(configDeclarer, provider, !customTransportProviders.isEmpty()));
return extensionDeclarer;
}
Aggregations