BUG-865: deprecate SourceStreamAware
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SourceStreamAware.java
index a05a3a15c41518b4242069cbdd82be31e1784a47..f11f65ac3a8e4ce53b0a38abf4327408ddd32037 100644 (file)
@@ -7,12 +7,16 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-// TODO: merge into Module, makes no sense as standalone interface
+/**
+ * @deprecated This interface is a violation of the effective model contract. To look up the source of a particular
+ *             module use a {@link org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository} or a similar
+ *             lookup table.
+ */
+@Deprecated
 public interface SourceStreamAware {
 
     /**
      * Get descriptive source path (usually file path) from which this module was parsed.
      */
     String getModuleSourcePath();
-
 }