public class OsgiServiceRegistryImpl extends Object implements OsgiServiceRegistry
Proxy
's that lazily use the
underlying ServiceTracker when invoked.Constructor and Description |
---|
OsgiServiceRegistryImpl(com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager osgiContainerManager) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getService(Class<T> clazz)
Provides an implementation of the given interface T that is guaranteed to be backed by the highest ranked
OSGi service implementing T.
|
public OsgiServiceRegistryImpl(com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager osgiContainerManager)
public <T> T getService(Class<T> clazz)
OsgiServiceRegistry
It is expected callers will use this method to obtain services that they will invoke later in response to user activity. Invoking methods on returned implementation immediately will probably not work, unless you know what you're doing.
getService
in interface OsgiServiceRegistry
Copyright © 2003–2020 Atlassian. All rights reserved.