@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.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()
Resolving of schema context.
|
getTCCLClassLoadingStrategy, loadClass
public static ModuleInfoBackedContext create()
public static ModuleInfoBackedContext create(ClassLoadingStrategy loadingStrategy)
loadingStrategy
- - specific loading strategypublic Class<?> loadClass(String fullyQualifiedName) throws ClassNotFoundException
loadClass
in interface ClassLoadingStrategy
loadClass
in class GeneratedClassLoadingStrategy
fullyQualifiedName
- fully qualified Java class nameClassNotFoundException
public 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 ModuleInfoRegistry
yangModuleInfo
- YANG module info instancepublic 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.