public final class ModuleInfoBackedContext extends GeneratedClassLoadingStrategy implements ModuleInfoRegistry, org.opendaylight.yangtools.yang.model.api.SchemaContextProvider, org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider<org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
Modifier and Type | Method and Description |
---|---|
void |
addModuleInfos(Iterable<? extends YangModuleInfo> moduleInfos) |
static ModuleInfoBackedContext |
create() |
static ModuleInfoBackedContext |
create(ClassLoadingStrategy loadingStrategy) |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getSchemaContext() |
com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource> |
getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier) |
Class<?> |
loadClass(String fullyQualifiedName) |
org.opendaylight.yangtools.concepts.ObjectRegistration<YangModuleInfo> |
registerModuleInfo(YangModuleInfo yangModuleInfo) |
Optional<org.opendaylight.yangtools.yang.model.api.SchemaContext> |
tryToCreateSchemaContext() |
getAlwaysFailClassLoadingStrategy, getTCCLClassLoadingStrategy, loadClass
public static ModuleInfoBackedContext create()
public static ModuleInfoBackedContext create(ClassLoadingStrategy loadingStrategy)
public Class<?> loadClass(String fullyQualifiedName) throws ClassNotFoundException
loadClass
in interface ClassLoadingStrategy
loadClass
in class GeneratedClassLoadingStrategy
ClassNotFoundException
public Optional<org.opendaylight.yangtools.yang.model.api.SchemaContext> tryToCreateSchemaContext()
public void addModuleInfos(Iterable<? extends YangModuleInfo> moduleInfos)
public org.opendaylight.yangtools.concepts.ObjectRegistration<YangModuleInfo> registerModuleInfo(YangModuleInfo yangModuleInfo)
registerModuleInfo
in interface ModuleInfoRegistry
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource> getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier)
getSource
in interface org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider<org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
public org.opendaylight.yangtools.yang.model.api.SchemaContext getSchemaContext()
getSchemaContext
in interface org.opendaylight.yangtools.yang.model.api.SchemaContextProvider
Copyright © 2019 OpenDaylight. All rights reserved.