package org.opendaylight.mdsal.dom.api;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
-
-public interface DOMSchemaService extends DOMService {
-
- /**
- * Returns session specific YANG schema context.
- *
- * @return schemaContext
- */
- SchemaContext getSessionContext();
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener;
+public interface DOMSchemaService extends DOMExtensibleService<DOMSchemaService, DOMSchemaServiceExtension> {
/**
* Returns global schema context.
*
* @return schemaContext
*/
- SchemaContext getGlobalContext();
+ EffectiveModelContext getGlobalContext();
/**
* Register a listener for changes in schema context.
* @param listener Listener which should be registered
* @return Listener registration handle
*/
- ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
+ ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener(
+ EffectiveModelContextListener listener);
}