Search in sources :

Example 1 with SoapOperationExecutorFactory

use of org.mule.runtime.module.extension.soap.internal.runtime.operation.SoapOperationExecutorFactory in project mule by mulesoft.

the class SoapInvokeOperationDeclarer method declare.

/**
 * Declares the invoke operation.
 *
 * @param configDeclarer the soap config declarer
 * @param loader         a {@link ClassTypeLoader} to load some parameters types.
 * @param soapErrors     the {@link ErrorModel}s that this operation can throw.
 */
void declare(ConfigurationDeclarer configDeclarer, ClassTypeLoader loader, Set<ErrorModel> soapErrors) {
    ReflectionCache reflectionCache = new ReflectionCache();
    OperationDeclarer operation = configDeclarer.withOperation(OPERATION_NAME).describedAs(OPERATION_DESCRIPTION).requiresConnection(true).blocking(true).withModelProperty(new ComponentExecutorModelProperty(new SoapOperationExecutorFactory())).withModelProperty(new ConnectivityModelProperty(ForwardingSoapClient.class));
    soapErrors.forEach(operation::withErrorModel);
    declareMetadata(operation, loader);
    declareOutput(operation, loader);
    declareMetadataKeyParameters(operation, loader, reflectionCache);
    declareRequestParameters(operation, loader);
}
Also used : ConnectivityModelProperty(org.mule.runtime.module.extension.internal.loader.java.property.ConnectivityModelProperty) ForwardingSoapClient(org.mule.runtime.module.extension.soap.internal.runtime.connection.ForwardingSoapClient) ReflectionCache(org.mule.runtime.module.extension.internal.util.ReflectionCache) OperationDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer) SoapOperationExecutorFactory(org.mule.runtime.module.extension.soap.internal.runtime.operation.SoapOperationExecutorFactory) ComponentExecutorModelProperty(org.mule.runtime.module.extension.api.loader.java.property.ComponentExecutorModelProperty)

Aggregations

OperationDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer)1 ComponentExecutorModelProperty (org.mule.runtime.module.extension.api.loader.java.property.ComponentExecutorModelProperty)1 ConnectivityModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.ConnectivityModelProperty)1 ReflectionCache (org.mule.runtime.module.extension.internal.util.ReflectionCache)1 ForwardingSoapClient (org.mule.runtime.module.extension.soap.internal.runtime.connection.ForwardingSoapClient)1 SoapOperationExecutorFactory (org.mule.runtime.module.extension.soap.internal.runtime.operation.SoapOperationExecutorFactory)1