All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractSchemaSourceCache, GuavaSchemaSourceCache, SchemaSourceTransformer, SoftSchemaSourceCache

@Beta public interface SchemaSourceListener extends EventListener
Listener for schema source lifecycle events.
  • Method Details

    • 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 with schemaSourceUnregistered(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