X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2Fmodel%2FSchemaService.java;h=c3e979c536b268c4a6156b7241e745f328569618;hb=ea3673e89598b896c93ebee864e6cb8db7f6c6ec;hp=52f60b3cc28728a7dce4a2435bfe1e97bb6a2e0c;hpb=fe024ad74b8656c3ee61b9ddff6009a779aa2189;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java index 52f60b3cc2..c3e979c536 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java @@ -8,35 +8,45 @@ package org.opendaylight.controller.sal.core.api.model; import org.opendaylight.controller.sal.core.api.BrokerService; +import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.model.api.Module; import org.opendaylight.yangtools.yang.model.api.SchemaContext; +import org.opendaylight.yangtools.yang.model.api.SchemaContextListener; public interface SchemaService extends BrokerService { /** - * Registers a YANG module to session and global context - * + * Registers a YANG module to session and global context + * * @param module */ void addModule(Module module); - + /** * Unregisters a YANG module from session context - * + * * @param module */ void removeModule(Module module); - + /** * Returns session specific YANG schema context * @return */ SchemaContext getSessionContext(); - + /** * Returns global schema context - * + * * @return */ SchemaContext getGlobalContext(); + + /** + * Register a listener for changes in schema context. + * + * @param listener Listener which should be registered + * @return Listener registration handle + */ + ListenerRegistration registerSchemaContextListener(SchemaContextListener listener); }