Interface SchemaSourceListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AbstractSchemaSourceCache,GuavaSchemaSourceCache,SchemaSourceTransformer
@Beta public interface SchemaSourceListener extends EventListener
Listener for schema source lifecycle events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidschemaSourceEncountered(org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation source)Invoked when the registry sees a concrete source.voidschemaSourceRegistered(Iterable<PotentialSchemaSource<?>> sources)Invoked when a new schema source is registered by a provider.voidschemaSourceUnregistered(PotentialSchemaSource<?> source)Invoked when a schema source is unregistered.
-
-
-
Method Detail
-
schemaSourceEncountered
void schemaSourceEncountered(org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation source)
Invoked when the registry sees a concrete source. This callback is typically used by cache-type listeners, who intercept the source, store it locally and announce themselves as a provider of that particular schema source.- Parameters:
source- Schema source
-
schemaSourceRegistered
void schemaSourceRegistered(Iterable<PotentialSchemaSource<?>> sources)
Invoked when a new schema source is registered by a provider. This call callback, along withschemaSourceUnregistered(PotentialSchemaSource)is typically used by transformer-type listeners, who intercept the registration if the advertised representation matches their input type and register themselves as a potential provider of the same source in their output representation type.- Parameters:
sources- Newly available sources
-
schemaSourceUnregistered
void schemaSourceUnregistered(PotentialSchemaSource<?> source)
Invoked when a schema source is unregistered.- Parameters:
source- Schema source representation
-
-