|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.applinks.host.OsgiServiceProxyFactory
public class OsgiServiceProxyFactory
Creates a proxy for an osgi service that is able to link to different implementations at runtime. Limited to one interface.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
OsgiServiceProxyFactory(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager)
Constructs a service proxy factory, using the OsgiContainerManager's service tracker |
|
OsgiServiceProxyFactory(OsgiServiceProxyFactory.ServiceTrackerFactory serviceTrackerFactory)
|
|
| Method Summary | ||
|---|---|---|
|
createProxy(java.lang.Class<T> apiClass,
long timeoutInMillis)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiServiceProxyFactory(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager)
osgiContainerManager - The osgi container managerpublic OsgiServiceProxyFactory(OsgiServiceProxyFactory.ServiceTrackerFactory serviceTrackerFactory)
| Method Detail |
|---|
public <T> T createProxy(java.lang.Class<T> apiClass,
long timeoutInMillis)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||