@Beta public abstract class AbstractSchemaRepository extends Object implements SchemaRepository, SchemaSourceRegistry
SchemaRepository implementations. It handles registration and lookup of schema
sources, subclasses need only to provide their own SchemaRepository.createSchemaContextFactory() implementation.| Constructor and Description |
|---|
AbstractSchemaRepository() |
| Modifier and Type | Method and Description |
|---|---|
<T extends SchemaSourceRepresentation> |
getSchemaSource(SourceIdentifier id,
Class<T> representation) |
<T extends SchemaSourceRepresentation> |
registerSchemaSource(SchemaSourceProvider<? super T> provider,
PotentialSchemaSource<T> source)
Register a new schema source which is potentially available from a provider.
|
SchemaListenerRegistration |
registerSchemaSourceListener(SchemaSourceListener listener)
Register a schema source listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSchemaContextFactory, createSchemaContextFactorypublic <T extends SchemaSourceRepresentation> com.google.common.util.concurrent.ListenableFuture<T> getSchemaSource(SourceIdentifier id, Class<T> representation)
getSchemaSource in interface SchemaRepositorypublic <T extends SchemaSourceRepresentation> SchemaSourceRegistration<T> registerSchemaSource(SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source)
SchemaSourceRegistrySchemaSourceProvider.getSource(SourceIdentifier) will succeed.registerSchemaSource in interface SchemaSourceRegistryprovider - Resolver which can potentially resolve the identifiersource - Schema source detailsSchemaSourceRegistration.close()
will cancel the registration.public SchemaListenerRegistration registerSchemaSourceListener(SchemaSourceListener listener)
SchemaSourceRegistryregisterSchemaSourceListener in interface SchemaSourceRegistrylistener - Schema source listenerListenerRegistration.close()
will cancel the registration.Copyright © 2019 OpenDaylight. All rights reserved.