Interface SchemaSourceRegistry
-
- All Known Implementing Classes:
AbstractSchemaRepository
@Beta public interface SchemaSourceRegistryRegistry of all potentially available schema sources. Processes capable of dynamic schema discovery, such as OSGi registry scanners, NETCONF clients (with NETCONF monitoring extension) and similar can registerSchemaSourceProviderinstances which would then acquire the schema source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>
SchemaSourceRegistration<T>registerSchemaSource(SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source)Register a new schema source which is potentially available from a provider.SchemaListenerRegistrationregisterSchemaSourceListener(SchemaSourceListener listener)Register a schema source listener.
-
-
-
Method Detail
-
registerSchemaSource
<T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> SchemaSourceRegistration<T> registerSchemaSource(SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source)
Register a new schema source which is potentially available from a provider. A registration does not guarantee that a subsequent call toSchemaSourceProvider.getSource(SourceIdentifier)will succeed.- Type Parameters:
T- schema source representation type- Parameters:
provider- Resolver which can potentially resolve the identifiersource- Schema source details- Returns:
- A registration handle. Invoking
SchemaSourceRegistration.close()will cancel the registration.
-
registerSchemaSourceListener
SchemaListenerRegistration registerSchemaSourceListener(SchemaSourceListener listener)
Register a schema source listener. The listener will be notified as new sources and their representations become available, subject to the provided filter.- Parameters:
listener- Schema source listener- Returns:
- A registration handle. Invoking
ListenerRegistration.close()will cancel the registration.
-
-