public class OsgiServiceRegistryImpl extends Object implements OsgiServiceRegistry, org.springframework.beans.factory.DisposableBean
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 |
---|---|
void |
destroy() |
<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–2017 Atlassian. All rights reserved.