Search in sources :

Example 1 with InvokeRequestTypeResolver

use of org.mule.runtime.module.extension.soap.internal.metadata.InvokeRequestTypeResolver 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));
}
Also used : NullMetadataResolver(org.mule.runtime.extension.api.metadata.NullMetadataResolver) DefaultMetadataResolverFactory(org.mule.runtime.core.internal.metadata.DefaultMetadataResolverFactory) MetadataKeyIdModelProperty(org.mule.runtime.extension.api.property.MetadataKeyIdModelProperty) InvokeKeysResolver(org.mule.runtime.module.extension.soap.internal.metadata.InvokeKeysResolver) InvokeRequestTypeResolver(org.mule.runtime.module.extension.soap.internal.metadata.InvokeRequestTypeResolver) InvokeInputHeadersTypeResolver(org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputHeadersTypeResolver) MetadataResolverFactoryModelProperty(org.mule.runtime.module.extension.internal.loader.java.property.MetadataResolverFactoryModelProperty) InvokeOutputTypeResolver(org.mule.runtime.module.extension.soap.internal.metadata.InvokeOutputTypeResolver) ImmutableMap(com.google.common.collect.ImmutableMap) InvokeInputAttachmentsTypeResolver(org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputAttachmentsTypeResolver) InputTypeResolver(org.mule.runtime.api.metadata.resolving.InputTypeResolver) Supplier(java.util.function.Supplier)

Aggregations

ImmutableMap (com.google.common.collect.ImmutableMap)1 Supplier (java.util.function.Supplier)1 InputTypeResolver (org.mule.runtime.api.metadata.resolving.InputTypeResolver)1 DefaultMetadataResolverFactory (org.mule.runtime.core.internal.metadata.DefaultMetadataResolverFactory)1 NullMetadataResolver (org.mule.runtime.extension.api.metadata.NullMetadataResolver)1 MetadataKeyIdModelProperty (org.mule.runtime.extension.api.property.MetadataKeyIdModelProperty)1 MetadataResolverFactoryModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.MetadataResolverFactoryModelProperty)1 InvokeInputAttachmentsTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputAttachmentsTypeResolver)1 InvokeInputHeadersTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputHeadersTypeResolver)1 InvokeKeysResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeKeysResolver)1 InvokeOutputTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeOutputTypeResolver)1 InvokeRequestTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeRequestTypeResolver)1