import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
+@Deprecated
public final class MockSchemaService implements DOMSchemaService, SchemaContextProvider {
private SchemaContext schemaContext;
public synchronized void changeSchema(final SchemaContext newContext) {
schemaContext = newContext;
- for (ListenerRegistration<SchemaContextListener> listener : listeners) {
+ for (ListenerRegistration<? extends SchemaContextListener> listener : listeners.getRegistrations()) {
listener.getInstance().onGlobalContextUpdated(schemaContext);
}
}