Class 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>
    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 Detail

      • SharedSchemaRepository

        public SharedSchemaRepository()
      • SharedSchemaRepository

        public SharedSchemaRepository​(String id)
      • SharedSchemaRepository

        public SharedSchemaRepository​(String id,
                                      org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory factory)
    • Method Detail

      • getIdentifier

        public @NonNull String getIdentifier()
        Specified by:
        getIdentifier in interface org.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:
        createEffectiveModelContextFactory in interface org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository