public class OsgiServiceProxyFactoryImpl extends Object implements OsgiServiceProxyFactory, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
OsgiServiceProxyFactoryImpl.ServiceTimeoutExceeded
Thrown if the timeout waiting for the service has been exceeded
|
static interface |
OsgiServiceProxyFactoryImpl.ServiceTrackerFactory
Abstracts how service trackers are created, mostly for testing
|
| Constructor and Description |
|---|
OsgiServiceProxyFactoryImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager,
long defaultTimeout)
Constructs a service proxy factory, using the OsgiContainerManager's service tracker
|
OsgiServiceProxyFactoryImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
OsgiServiceProxyFactoryImpl.ServiceTrackerFactory serviceTrackerFactory,
long defaultTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> T |
createProxy(Class<T> apiClass) |
<T> T |
createProxy(Class<T> apiClass,
long timeoutInMillis) |
void |
onPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) |
public OsgiServiceProxyFactoryImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager,
long defaultTimeout)
osgiContainerManager - the osgi container managerdefaultTimeout - the default timeout for service invocationspublic OsgiServiceProxyFactoryImpl(com.atlassian.plugin.event.PluginEventManager pluginEventManager,
OsgiServiceProxyFactoryImpl.ServiceTrackerFactory serviceTrackerFactory,
long defaultTimeout)
public <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
createProxy in interface OsgiServiceProxyFactorypublic <T> T createProxy(Class<T> apiClass)
createProxy in interface OsgiServiceProxyFactorypublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void onPluginFrameworkShutdownEvent(@NotNull
com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.