com.sap.cds.adapter.odata.v2.ODataV2IndexContentProviderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cds-adapter-odata-v2 Show documentation
Show all versions of cds-adapter-odata-v2 Show documentation
OData V2 adapter for CDS Services Java
/**************************************************************************
* (C) 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
**************************************************************************/
package com.sap.cds.adapter.odata.v2;
import com.sap.cds.adapter.IndexContentProvider;
import com.sap.cds.adapter.IndexContentProviderFactory;
import com.sap.cds.services.runtime.CdsRuntime;
import com.sap.cds.services.runtime.CdsRuntimeAware;
public class ODataV2IndexContentProviderFactory implements IndexContentProviderFactory, CdsRuntimeAware {
private CdsRuntime runtime;
@Override
public void setCdsRuntime(CdsRuntime runtime) {
this.runtime = runtime;
}
@Override
public IndexContentProvider create() {
return new ODataV2IndexContentProvider(runtime);
}
@Override
public boolean isEnabled() {
return runtime.getEnvironment().getCdsProperties().getOdataV2().getEndpoint().isEnabled();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy