Turn ParserNamespace into an abstract class
[yangtools.git] / parser / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / ModuleNamespace.java
index 9788fde789ed4f71c0b1b141978ed5c6cd25c6c1..daf6162797118a7c4521c914afa14b6389ad27ad 100644 (file)
@@ -13,14 +13,17 @@ import org.opendaylight.yangtools.yang.model.api.stmt.ModuleStatement;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StatementNamespace;
-import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 
 /**
  * Module namespace. All modules known to the reactor are populated to this namespace. Each module is identified
  * by a {@link SourceIdentifier}.
  */
-public interface ModuleNamespace
+public final class ModuleNamespace
         extends StatementNamespace<SourceIdentifier, ModuleStatement, ModuleEffectiveStatement> {
-    NamespaceBehaviour<SourceIdentifier, StmtContext<?, ModuleStatement, ModuleEffectiveStatement>,
-            @NonNull ModuleNamespace> BEHAVIOUR = NamespaceBehaviour.global(ModuleNamespace.class);
+    public static final @NonNull NamespaceBehaviour<?, ?, ?> BEHAVIOUR =
+        NamespaceBehaviour.global(ModuleNamespace.class);
+
+    private ModuleNamespace() {
+        // Hidden on purpose
+    }
 }