@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 SourceIdentifier
s.
Constructor and Description |
---|
SharedSchemaRepository(String id) |
Modifier and Type | Method and Description |
---|---|
@NonNull SchemaContextFactory |
createSchemaContextFactory(@NonNull SchemaContextFactoryConfiguration config)
Returns
SchemaContextFactory with supplied configuration. |
@NonNull String |
getIdentifier()
Return this objects Identifier.
|
String |
toString() |
getSchemaSource, registerSchemaSource, registerSchemaSourceListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createSchemaContextFactory
public SharedSchemaRepository(String id)
public @NonNull String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable<String>
public @NonNull SchemaContextFactory createSchemaContextFactory(@NonNull SchemaContextFactoryConfiguration config)
SchemaRepository
SchemaContextFactory
with supplied configuration.createSchemaContextFactory
in interface SchemaRepository
config
- configuration of schema context factory.Copyright © 2019 OpenDaylight. All rights reserved.