use of org.mule.runtime.module.extension.internal.loader.java.TypeAwareConfigurationFactory in project mule by mulesoft.
the class SoapModelLoaderDelegate method getConfigDeclarer.
private ConfigurationDeclarer getConfigDeclarer(ExtensionDeclarer declarer, SoapExtensionTypeWrapper<?> extension, Set<ErrorModel> soapErrors) {
// TODO - MULE-14311 - Make loader work in compile time
Class<?> clazz = extension.getDeclaringClass().get();
TypeAwareConfigurationFactory configurationFactory = new TypeAwareConfigurationFactory(clazz, clazz.getClassLoader());
ConfigurationDeclarer configDeclarer = declarer.withConfig(DEFAULT_CONFIG_NAME).describedAs(DEFAULT_CONFIG_DESCRIPTION).withModelProperty(new ConfigurationFactoryModelProperty(configurationFactory)).withModelProperty(new ImplementingTypeModelProperty(clazz));
operationDeclarer.declare(configDeclarer, typeLoader, soapErrors);
return configDeclarer;
}
Aggregations