@Beta public 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)
Add new module info into context. 
 | 
static ModuleInfoBackedContext | 
create()
Create new module info context. 
 | 
static ModuleInfoBackedContext | 
create(ClassLoadingStrategy loadingStrategy)
Create new module info context based on specific loading strategy. 
 | 
org.opendaylight.yangtools.yang.model.api.SchemaContext | 
getSchemaContext()  | 
com.google.common.util.concurrent.CheckedFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException> | 
getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier)  | 
Class<?> | 
loadClass(String fullyQualifiedName)  | 
org.opendaylight.yangtools.concepts.ObjectRegistration<YangModuleInfo> | 
registerModuleInfo(YangModuleInfo yangModuleInfo)  | 
com.google.common.base.Optional<org.opendaylight.yangtools.yang.model.api.SchemaContext> | 
tryToCreateSchemaContext()
Resolving of schema context. 
 | 
getTCCLClassLoadingStrategy, loadClasspublic static ModuleInfoBackedContext create()
public static ModuleInfoBackedContext create(ClassLoadingStrategy loadingStrategy)
loadingStrategy - - specific loading strategypublic Class<?> loadClass(String fullyQualifiedName) throws ClassNotFoundException
loadClass in interface ClassLoadingStrategyloadClass in class GeneratedClassLoadingStrategyfullyQualifiedName - fully qualified Java class nameClassNotFoundExceptionpublic com.google.common.base.Optional<org.opendaylight.yangtools.yang.model.api.SchemaContext> tryToCreateSchemaContext()
public void addModuleInfos(Iterable<? extends YangModuleInfo> moduleInfos)
moduleInfos - - new module infopublic org.opendaylight.yangtools.concepts.ObjectRegistration<YangModuleInfo> registerModuleInfo(YangModuleInfo yangModuleInfo)
registerModuleInfo in interface ModuleInfoRegistryyangModuleInfo - YANG module info instancepublic com.google.common.util.concurrent.CheckedFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException> 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.SchemaContextProviderCopyright © 2018 OpenDaylight. All rights reserved.