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.SchemaContextProvider
public org.opendaylight.yangtools.yang.model.api.SchemaContext getGlobalContext()
DOMSchemaService
getGlobalContext
in interface DOMSchemaService
public org.opendaylight.yangtools.yang.model.api.SchemaContext getSessionContext()
DOMSchemaService
getSessionContext
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 void close()
close
in interface AutoCloseable
public 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()
DOMExtensibleService
getSupportedExtensions
in interface DOMExtensibleService<DOMSchemaService,DOMSchemaServiceExtension>
getSupportedExtensions
in interface DOMSchemaService
public 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.