public class OsgiServiceProxyFactoryImpl extends Object implements OsgiServiceProxyFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
OsgiServiceProxyFactoryImpl.ServiceTimeoutExceeded
Thrown if the timeout waiting for the service has been exceeded
|
| 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> T |
createNonIsolatingProxy(Class<T> apiClass,
long timeoutInMillis)
Creates a service proxy with a custom timeout.
|
<T> T |
createProxy(Class<T> apiClass)
Creates a service proxy with a default timeout.
|
<T> T |
createProxy(Class<T> apiClass,
long timeoutInMillis)
Creates a service proxy with a custom timeout.
|
void |
onPluginFrameworkShutdownEvent(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored) |
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 invocations
śpublic <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
OsgiServiceProxyFactorycreateProxy in interface OsgiServiceProxyFactorypublic <T> T createNonIsolatingProxy(Class<T> apiClass, long timeoutInMillis)
OsgiServiceProxyFactorycreateNonIsolatingProxy in interface OsgiServiceProxyFactorypublic <T> T createProxy(Class<T> apiClass)
OsgiServiceProxyFactorycreateProxy in interface OsgiServiceProxyFactory#createProxy(Class, long)}@PostConstruct public void afterPropertiesSet() throws Exception
Exceptionpublic void onPluginFrameworkShutdownEvent(@NotNull
com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.