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)
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)
osgiContainerManager
- the osgi container managerpublic <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
OsgiServiceProxyFactory
createProxy
in interface OsgiServiceProxyFactory
public <T> T createNonIsolatingProxy(Class<T> apiClass, long timeoutInMillis)
OsgiServiceProxyFactory
createNonIsolatingProxy
in interface OsgiServiceProxyFactory
public <T> T createProxy(Class<T> apiClass)
OsgiServiceProxyFactory
createProxy
in interface OsgiServiceProxyFactory
#createProxy(Class, long)}
@PostConstruct public void afterPropertiesSet() throws Exception
Exception
public void onPluginFrameworkShutdownEvent(@NotNull com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.