public class OsgiServiceProxyFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OsgiServiceProxyFactory.ServiceTimeoutExceeded
Thrown if the timeout waiting for the service has been exceeded
|
static interface |
OsgiServiceProxyFactory.ServiceTrackerFactory
Abstracts how service trackers are created, mostly for testing
|
| Constructor and Description |
|---|
OsgiServiceProxyFactory(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager)
Constructs a service proxy factory, using the OsgiContainerManager's service tracker
|
OsgiServiceProxyFactory(OsgiServiceProxyFactory.ServiceTrackerFactory serviceTrackerFactory) |
public OsgiServiceProxyFactory(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager)
osgiContainerManager - The osgi container managerpublic OsgiServiceProxyFactory(OsgiServiceProxyFactory.ServiceTrackerFactory serviceTrackerFactory)
public <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
Copyright © 2019 Atlassian. All rights reserved.