com.sap.cds.feature.mt.ManagedHanaDescriptorCreator Maven / Gradle / Ivy
/**************************************************************************
* (C) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. *
**************************************************************************/
package com.sap.cds.feature.mt;
import java.util.List;
import java.util.stream.Collectors;
import com.sap.cds.feature.platform.PlatformEnvironment;
import com.sap.cds.feature.services.ServiceDescriptor;
import com.sap.cds.feature.services.ServiceDescriptorCreator;
/**
* Creator for the {@link ManagedHanaDescriptor}
*/
public class ManagedHanaDescriptorCreator implements ServiceDescriptorCreator {
@Override
public List create() {
return PlatformEnvironment.INSTANCE.getServiceBindings()
.filter(b -> b.getTags().contains("managed-hana"))
.map(b -> new ManagedHanaDescriptor(b))
.collect(Collectors.toList());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy