use of org.mule.runtime.module.extension.soap.internal.metadata.InvokeKeysResolver in project mule by mulesoft.
the class SoapInvokeOperationDeclarer method declareMetadata.
private void declareMetadata(OperationDeclarer operation, ClassTypeLoader loader) {
ImmutableMap.Builder<String, Supplier<? extends InputTypeResolver>> inputResolver = ImmutableMap.builder();
inputResolver.put(BODY_PARAM, InvokeRequestTypeResolver::new);
inputResolver.put(HEADERS_PARAM, InvokeInputHeadersTypeResolver::new);
inputResolver.put(ATTACHMENTS_PARAM, InvokeInputAttachmentsTypeResolver::new);
DefaultMetadataResolverFactory factory = new DefaultMetadataResolverFactory(InvokeKeysResolver::new, inputResolver.build(), InvokeOutputTypeResolver::new, NullMetadataResolver::new);
operation.withModelProperty(new MetadataResolverFactoryModelProperty(() -> factory));
operation.withModelProperty(new MetadataKeyIdModelProperty(loader.load(WebServiceTypeKey.class), KEYS_GROUP));
}
Aggregations