public class OsgiBundleScanningSchemaService extends Object implements org.opendaylight.yangtools.yang.model.api.SchemaContextProvider, DOMSchemaService, org.osgi.util.tracker.ServiceTrackerCustomizer<org.opendaylight.yangtools.yang.model.api.SchemaContextListener,org.opendaylight.yangtools.yang.model.api.SchemaContextListener>, DOMYangTextSourceProvider, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.yangtools.yang.model.api.SchemaContextListener |
addingService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference) |
void |
close() |
static OsgiBundleScanningSchemaService |
createInstance(org.osgi.framework.BundleContext ctx) |
static void |
destroyInstance() |
org.osgi.framework.BundleContext |
getContext() |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
getGlobalContext()
Returns global schema context.
|
static OsgiBundleScanningSchemaService |
getInstance() |
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.CheckedFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException> |
getSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier) |
Map<Class<? extends DOMSchemaServiceExtension>,DOMSchemaServiceExtension> |
getSupportedExtensions()
Return a map of currently-supported extensions, along with accessor services
which provide access to the specific functionality bound to this service.
|
void |
modifiedService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference,
org.opendaylight.yangtools.yang.model.api.SchemaContextListener service) |
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 |
removedService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference,
org.opendaylight.yangtools.yang.model.api.SchemaContextListener service) |
void |
tryToUpdateSchemaContext() |
@Nonnull public static OsgiBundleScanningSchemaService createInstance(org.osgi.framework.BundleContext ctx)
public static OsgiBundleScanningSchemaService getInstance()
public static void destroyInstance()
public org.osgi.framework.BundleContext getContext()
public org.opendaylight.yangtools.yang.model.api.SchemaContext getSchemaContext()
getSchemaContext in interface org.opendaylight.yangtools.yang.model.api.SchemaContextProviderpublic org.opendaylight.yangtools.yang.model.api.SchemaContext getGlobalContext()
DOMSchemaServicegetGlobalContext in interface DOMSchemaServicepublic org.opendaylight.yangtools.yang.model.api.SchemaContext getSessionContext()
DOMSchemaServicegetSessionContext in interface DOMSchemaServicepublic org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> registerSchemaContextListener(org.opendaylight.yangtools.yang.model.api.SchemaContextListener listener)
DOMSchemaServiceregisterSchemaContextListener in interface DOMSchemaServicelistener - Listener which should be registeredpublic void close()
close in interface AutoCloseablepublic org.opendaylight.yangtools.yang.model.api.SchemaContextListener addingService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.opendaylight.yangtools.yang.model.api.SchemaContextListener,org.opendaylight.yangtools.yang.model.api.SchemaContextListener>public void tryToUpdateSchemaContext()
public void modifiedService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference,
org.opendaylight.yangtools.yang.model.api.SchemaContextListener service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.opendaylight.yangtools.yang.model.api.SchemaContextListener,org.opendaylight.yangtools.yang.model.api.SchemaContextListener>public void removedService(org.osgi.framework.ServiceReference<org.opendaylight.yangtools.yang.model.api.SchemaContextListener> reference,
org.opendaylight.yangtools.yang.model.api.SchemaContextListener service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.opendaylight.yangtools.yang.model.api.SchemaContextListener,org.opendaylight.yangtools.yang.model.api.SchemaContextListener>public Map<Class<? extends DOMSchemaServiceExtension>,DOMSchemaServiceExtension> getSupportedExtensions()
DOMExtensibleServicegetSupportedExtensions in interface DOMExtensibleService<DOMSchemaService,DOMSchemaServiceExtension>getSupportedExtensions in interface DOMSchemaServicepublic com.google.common.util.concurrent.CheckedFuture<? extends org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException> 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>Copyright © 2018 OpenDaylight. All rights reserved.