@Beta @MetaInfServices(value=SchemaRepository.class) public final class SharedSchemaRepository extends AbstractSchemaRepository implements Identifiable<String>
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 and Description |
|---|
SharedSchemaRepository(String id) |
| Modifier and Type | Method and Description |
|---|---|
SchemaContextFactory |
createSchemaContextFactory(SchemaContextFactoryConfiguration config)
Returns
SchemaContextFactory with supplied configuration. |
SchemaContextFactory |
createSchemaContextFactory(SchemaSourceFilter filter)
Deprecated.
|
String |
getIdentifier()
Return this objects Identifier.
|
String |
toString() |
getSchemaSource, registerSchemaSource, registerSchemaSourceListenerpublic SharedSchemaRepository(String id)
public String getIdentifier()
IdentifiablegetIdentifier in interface Identifiable<String>@Deprecated public SchemaContextFactory createSchemaContextFactory(@Nonnull SchemaSourceFilter filter)
SchemaRepositorySchemaContextFactory, which will filter
available schema sources using the provided filter.createSchemaContextFactory in interface SchemaRepositoryfilter - Filter which acts as the gating function before a schema
source is considered by the factory for inclusion in the
SchemaContext it produces.public SchemaContextFactory createSchemaContextFactory(@Nonnull SchemaContextFactoryConfiguration config)
SchemaRepositorySchemaContextFactory with supplied configuration.createSchemaContextFactory in interface SchemaRepositoryconfig - configuration of schema context factory.Copyright © 2019 OpenDaylight. All rights reserved.