@Beta 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 SourceIdentifier
s.Constructor and Description |
---|
SharedSchemaRepository(String id) |
Modifier and Type | Method and Description |
---|---|
SchemaContextFactory |
createSchemaContextFactory(SchemaSourceFilter filter)
Instantiate a new
SchemaContextFactory , which will filter available schema
sources using the provided filter. |
String |
getIdentifier()
Return this objects Identifier
|
String |
toString() |
getSchemaSource, registerSchemaSource, registerSchemaSourceListener
public SharedSchemaRepository(String id)
public String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable<String>
public SchemaContextFactory createSchemaContextFactory(@Nonnull SchemaSourceFilter filter)
SchemaRepository
SchemaContextFactory
, which will filter available schema
sources using the provided filter.createSchemaContextFactory
in interface SchemaRepository
filter
- Filter which acts as the gating function before a schema source is
considered by the factory for inclusion in the SchemaContext
it produces.Copyright © 2018 OpenDaylight. All rights reserved.