Class SharedSchemaRepository
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository
-
- org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Identifiable<String>,org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository,org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceRegistry
@Beta @MetaInfServices(org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository.class) public final class SharedSchemaRepository extends org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository implements org.opendaylight.yangtools.concepts.Identifiable<String>
ASchemaRepositorywhich allows sharing ofSchemaContextas long as their specification is the same.Note: for current implementation, "same" means the same filter and the same set of
SourceIdentifiers.
-
-
Constructor Summary
Constructors Constructor Description SharedSchemaRepository()SharedSchemaRepository(String id)SharedSchemaRepository(String id, org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactorycreateEffectiveModelContextFactory(@NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactoryConfiguration config)@NonNull StringgetIdentifier()StringtoString()-
Methods inherited from class org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaRepository
getSchemaSource, registerSchemaSource, registerSchemaSourceListener
-
-
-
-
Method Detail
-
getIdentifier
public @NonNull String getIdentifier()
- Specified by:
getIdentifierin interfaceorg.opendaylight.yangtools.concepts.Identifiable<String>
-
createEffectiveModelContextFactory
public @NonNull org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactory createEffectiveModelContextFactory(@NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactoryConfiguration config)
- Specified by:
createEffectiveModelContextFactoryin interfaceorg.opendaylight.yangtools.yang.model.repo.api.SchemaRepository
-
-