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>
ASchemaRepository
which allows sharing ofSchemaContext
as long as their specification is the same.Note: for current implementation, "same" means the same filter and the same set of
SourceIdentifier
s.
-
-
Constructor Summary
Constructors Constructor Description SharedSchemaRepository()
SharedSchemaRepository(String id)
SharedSchemaRepository(String id, YangParserFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull EffectiveModelContextFactory
createEffectiveModelContextFactory(@NonNull SchemaContextFactoryConfiguration config)
ReturnsEffectiveModelContextFactory
with supplied configuration.@NonNull String
getIdentifier()
Return this objects Identifier.String
toString()
-
Methods inherited from class org.opendaylight.yangtools.yang.model.repo.spi.AbstractSchemaRepository
getSchemaSource, registerSchemaSource, registerSchemaSourceListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository
createEffectiveModelContextFactory
-
-
-
-
Constructor Detail
-
SharedSchemaRepository
public SharedSchemaRepository()
-
SharedSchemaRepository
public SharedSchemaRepository(String id)
-
SharedSchemaRepository
public SharedSchemaRepository(String id, YangParserFactory factory)
-
-
Method Detail
-
getIdentifier
public @NonNull String getIdentifier()
Description copied from interface:Identifiable
Return this objects Identifier.- Specified by:
getIdentifier
in interfaceIdentifiable<String>
- Returns:
- Object's identifier, must not be null.
-
createEffectiveModelContextFactory
public @NonNull EffectiveModelContextFactory createEffectiveModelContextFactory(@NonNull SchemaContextFactoryConfiguration config)
Description copied from interface:SchemaRepository
ReturnsEffectiveModelContextFactory
with supplied configuration.- Specified by:
createEffectiveModelContextFactory
in interfaceSchemaRepository
- Parameters:
config
- configuration of schema context factory.- Returns:
- schema context factory.
-
-