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>,SchemaRepository,SchemaSourceRegistry
@Beta
@MetaInfServices(SchemaRepository.class)
public final class SharedSchemaRepository
extends 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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull EffectiveModelContextFactorycreateEffectiveModelContextFactory(@NonNull SchemaContextFactoryConfiguration config) ReturnsEffectiveModelContextFactorywith supplied configuration.@NonNull StringReturn this objects Identifier.toString()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
-
-
Method Details
-
getIdentifier
Description copied from interface:IdentifiableReturn this objects Identifier.- Specified by:
getIdentifierin interfaceIdentifiable<String>- Returns:
- Object's identifier, must not be null.
-
createEffectiveModelContextFactory
public @NonNull EffectiveModelContextFactory createEffectiveModelContextFactory(@NonNull SchemaContextFactoryConfiguration config) Description copied from interface:SchemaRepositoryReturnsEffectiveModelContextFactorywith supplied configuration.- Specified by:
createEffectiveModelContextFactoryin interfaceSchemaRepository- Parameters:
config- configuration of schema context factory.- Returns:
- schema context factory.
-
toString
-