@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, wait
createSchemaContextFactory, createSchemaContextFactory
public <T extends SchemaSourceRepresentation> com.google.common.util.concurrent.ListenableFuture<T> getSchemaSource(SourceIdentifier id, Class<T> representation)
getSchemaSource
in interface SchemaRepository
public <T extends SchemaSourceRepresentation> SchemaSourceRegistration<T> registerSchemaSource(SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source)
SchemaSourceRegistry
SchemaSourceProvider.getSource(SourceIdentifier)
will succeed.registerSchemaSource
in interface SchemaSourceRegistry
provider
- Resolver which can potentially resolve the identifiersource
- Schema source detailsSchemaSourceRegistration.close()
will cancel the registration.public SchemaListenerRegistration registerSchemaSourceListener(SchemaSourceListener listener)
SchemaSourceRegistry
registerSchemaSourceListener
in interface SchemaSourceRegistry
listener
- Schema source listenerListenerRegistration.close()
will cancel the registration.Copyright © 2019 OpenDaylight. All rights reserved.