use of uk.gov.justice.subscription.domain.SubscriptionDescriptorDef in project microservice_framework by CJSCommonPlatform.
the class RamlToJmsSubscriptionConverter method convert.
public SubscriptionDescriptorDef convert(final Raml raml, final String componentName) {
final String baseUri = raml.getBaseUri();
final String service = subscriptionNamesGenerator.createContextNameFrom(baseUri);
final List<Subscription> subscriptions = resourcesListToSubscriptionListConverter.getSubscriptions(raml.getResources().values());
final SubscriptionDescriptor subscriptionDescriptor = new SubscriptionDescriptor(SUBSCRIPTION_SPEC_VERSION, service, componentName, subscriptions);
return new SubscriptionDescriptorDef(subscriptionDescriptor);
}
Aggregations