import org.opendaylight.yangtools.yang.model.api.Module
import com.google.common.base.Optional
import org.opendaylight.yangtools.yang.binding.BindingMapping
+import org.opendaylight.yangtools.yang.model.api.SchemaContextHolder
-class RuntimeGeneratedMappingServiceImpl implements BindingIndependentMappingService, SchemaServiceListener, SchemaLock, AutoCloseable {
+class RuntimeGeneratedMappingServiceImpl implements BindingIndependentMappingService, SchemaServiceListener,
+SchemaLock, AutoCloseable, SchemaContextHolder {
@Property
ClassPool pool;
val promisedTypes = HashMultimap.<Type, SettableFuture<Type>>create;
+ @Property
var SchemaContext schemaContext;
//ServiceRegistration<SchemaServiceListener> listenerRegistration
--- /dev/null
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.yang.model.api;
+
+public interface SchemaContextHolder {
+ SchemaContext getSchemaContext();
+}