Class SharedSchemaRepository
java.lang.Object
org.opendaylight.yangtools.yang.model.repo.spi.AbstractSchemaRepository
org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository
- All Implemented Interfaces:
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.spi.AbstractSchemaRepository
implements Identifiable<String>
A
SchemaRepository which allows sharing of SchemaContext as long as their specification is the same.
Note: for current implementation, "same" means the same filter and the same set of SourceIdentifiers.
-
Constructor Summary
ConstructorsConstructorDescriptionSharedSchemaRepository(String id, org.opendaylight.yangtools.yang.parser.api.YangParserFactory factory) -
Method Summary
Modifier and TypeMethodDescription@NonNull org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactorycreateEffectiveModelContextFactory(@NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactoryConfiguration config) @NonNull StringtoString()Methods inherited from class org.opendaylight.yangtools.yang.model.repo.spi.AbstractSchemaRepository
getSchemaSource, registerSchemaSource, registerSchemaSourceListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository
createEffectiveModelContextFactory
-
Constructor Details
-
SharedSchemaRepository
public SharedSchemaRepository() -
SharedSchemaRepository
-
SharedSchemaRepository
public SharedSchemaRepository(String id, org.opendaylight.yangtools.yang.parser.api.YangParserFactory factory)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin interfaceIdentifiable<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
-
toString
-