Steer users towards using EffectiveModelContext -- if they already
have an EffectiveModelContextProvider, they should not be using
getSchemaContext().
Change-Id: Ibcbfa9926a66a3890c1ae3b163c5a16841c2a716
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
@NonNull EffectiveModelContext getEffectiveModelContext();
+ /**
+ * {@inheritDoc}
+ *
+ * @deprecated Please use {@link #getEffectiveModelContext()} instead.
+ */
+ @Deprecated
@Override
default SchemaContext getSchemaContext() {
return getEffectiveModelContext();
import org.eclipse.jdt.annotation.NonNull;
-// FIXME: document this API contract
+// FIXME: 6.0.0: remove this contract
public interface SchemaContextProvider {
/**
* Return the {@link SchemaContext} attached to this object.