diff --git a/org.eclipse.lyo.oslc4j.codegenerator/src/org/eclipse/lyo/oslc4j/codegenerator/files/generateResourceService.mtl b/org.eclipse.lyo.oslc4j.codegenerator/src/org/eclipse/lyo/oslc4j/codegenerator/files/generateResourceService.mtl index 84e03de8..1fc5bca9 100644 --- a/org.eclipse.lyo.oslc4j.codegenerator/src/org/eclipse/lyo/oslc4j/codegenerator/files/generateResourceService.mtl +++ b/org.eclipse.lyo.oslc4j.codegenerator/src/org/eclipse/lyo/oslc4j/codegenerator/files/generateResourceService.mtl @@ -110,7 +110,8 @@ import org.eclipse.lyo.oslc4j.core.model.AbstractResource; import [javaClassFullNameForAdaptorManager(anAdaptorInterface) /]; import [javaInterfaceFullNameForAdaptorConstants(anAdaptorInterface) /]; -[for (aDomainSpecification: DomainSpecification | (aService.servicedResources().definingDomainSpecification()->union(Set{aService.domainSpecification}))->sortedBy(name)) separator(lineSeparator())]import [javaInterfaceFullNameForConstants(aDomainSpecification, anAdaptorInterface, null) /];[/for] +[for (aDomainSpecification: DomainSpecification | (aService.servicedResources().definingDomainSpecification()->union(Set{aService.domainSpecification}))->sortedBy(name)))]import [javaInterfaceFullNameForConstants(aDomainSpecification, anAdaptorInterface, null) /]; +[/for] import [javaClassFullNameForSingleton(anAdaptorInterface.serviceProviderCatalog) /]; [for (aResource: Resource | aService.relevantResources()->sortedBy(name))] import [javaClassFullName(aResource, anAdaptorInterface, null) /];