Class ScanningSchemaServiceProvider
- java.lang.Object
-
- org.opendaylight.mdsal.dom.spi.AbstractDOMSchemaService
-
- org.opendaylight.mdsal.dom.spi.AbstractDOMSchemaService.WithYangTextSources
-
- org.opendaylight.mdsal.dom.broker.schema.ScanningSchemaServiceProvider
-
- All Implemented Interfaces:
AutoCloseable
,DOMExtensibleService<DOMSchemaService,DOMSchemaServiceExtension>
,DOMSchemaService
,DOMSchemaServiceExtension
,DOMService
,DOMServiceExtension<DOMSchemaService,DOMSchemaServiceExtension>
,DOMYangTextSourceProvider
,org.opendaylight.yangtools.yang.model.api.SchemaContextProvider
,org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider<org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
- Direct Known Subclasses:
OsgiBundleScanningSchemaService
public class ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.mdsal.dom.spi.AbstractDOMSchemaService
AbstractDOMSchemaService.WithYangTextSources
-
-
Constructor Summary
Constructors Constructor Description ScanningSchemaServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.opendaylight.yangtools.yang.model.api.SchemaContext
getGlobalContext()
Returns global schema context.ListenableFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier)
boolean
hasListeners()
void
notifyListeners(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
List<org.opendaylight.yangtools.concepts.Registration>
registerAvailableYangs(List<URL> yangs)
org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.model.api.SchemaContextListener>
registerSchemaContextListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener listener)
Register a listener for changes in schema context.void
removeListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener schemaContextListener)
void
tryToUpdateSchemaContext()
-
Methods inherited from class org.opendaylight.mdsal.dom.spi.AbstractDOMSchemaService.WithYangTextSources
getExtensions
-
Methods inherited from class org.opendaylight.mdsal.dom.spi.AbstractDOMSchemaService
getSchemaContext, getSessionContext
-
-
-
-
Method Detail
-
tryToUpdateSchemaContext
public void tryToUpdateSchemaContext()
-
notifyListeners
public void notifyListeners(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
-
registerAvailableYangs
public List<org.opendaylight.yangtools.concepts.Registration> registerAvailableYangs(List<URL> yangs)
-
removeListener
public void removeListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener schemaContextListener)
-
hasListeners
public boolean hasListeners()
-
getGlobalContext
public org.opendaylight.yangtools.yang.model.api.SchemaContext getGlobalContext()
Description copied from interface:DOMSchemaService
Returns global schema context.- Specified by:
getGlobalContext
in interfaceDOMSchemaService
- Returns:
- schemaContext
-
registerSchemaContextListener
public org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> registerSchemaContextListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener listener)
Description copied from interface:DOMSchemaService
Register a listener for changes in schema context.- Specified by:
registerSchemaContextListener
in interfaceDOMSchemaService
- Parameters:
listener
- Listener which should be registered- Returns:
- Listener registration handle
-
getSource
public ListenableFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource> getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier)
- Specified by:
getSource
in interfaceorg.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider<org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-