public class ScanningSchemaServiceProvider extends Object implements DOMSchemaService, org.opendaylight.yangtools.yang.model.api.SchemaContextProvider, DOMYangTextSourceProvider, AutoCloseable
Constructor and Description |
---|
ScanningSchemaServiceProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.google.common.collect.ClassToInstanceMap<DOMSchemaServiceExtension> |
getExtensions()
Return a map of currently-supported extensions, along with accessor services
which provide access to the specific functionality bound to this service.
|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getGlobalContext()
Returns global schema context.
|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getSchemaContext() |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getSessionContext()
Returns session specific YANG schema context.
|
com.google.common.util.concurrent.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() |
public void tryToUpdateSchemaContext()
public void notifyListeners(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
public List<org.opendaylight.yangtools.concepts.Registration> registerAvailableYangs(List<URL> yangs)
public void removeListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener schemaContextListener)
public boolean hasListeners()
public org.opendaylight.yangtools.yang.model.api.SchemaContext getSessionContext()
DOMSchemaService
getSessionContext
in interface DOMSchemaService
public org.opendaylight.yangtools.yang.model.api.SchemaContext getGlobalContext()
DOMSchemaService
getGlobalContext
in interface DOMSchemaService
public org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> registerSchemaContextListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener listener)
DOMSchemaService
registerSchemaContextListener
in interface DOMSchemaService
listener
- Listener which should be registeredpublic org.opendaylight.yangtools.yang.model.api.SchemaContext getSchemaContext()
getSchemaContext
in interface org.opendaylight.yangtools.yang.model.api.SchemaContextProvider
public com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource> getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier)
getSource
in interface org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider<org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource>
public com.google.common.collect.ClassToInstanceMap<DOMSchemaServiceExtension> getExtensions()
DOMExtensibleService
getExtensions
in interface DOMExtensibleService<DOMSchemaService,DOMSchemaServiceExtension>
public void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.