Package com.atlassian.bamboo.plugin.osgi
Class OsgiServiceProxyFactoryImpl
java.lang.Object
com.atlassian.bamboo.plugin.osgi.OsgiServiceProxyFactoryImpl
- All Implemented Interfaces:
OsgiServiceProxyFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Thrown if the timeout waiting for the service has been exceeded -
Constructor Summary
ConstructorDescriptionOsgiServiceProxyFactoryImpl
(com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager) Constructs a service proxy factory, using the OsgiContainerManager's service tracker -
Method Summary
Modifier and TypeMethodDescriptionvoid
<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
(@NotNull com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored)
-
Constructor Details
-
OsgiServiceProxyFactoryImpl
public 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- Parameters:
osgiContainerManager
- the osgi container manager
-
-
Method Details
-
createProxy
Description copied from interface:OsgiServiceProxyFactory
Creates a service proxy with a custom timeout. Methods of this proxy will be executed within the classloader of the OSGi bundle.- Specified by:
createProxy
in interfaceOsgiServiceProxyFactory
-
createNonIsolatingProxy
Description copied from interface:OsgiServiceProxyFactory
Creates a service proxy with a custom timeout. Methods of this proxy will be executed within the classloader of the caller.- Specified by:
createNonIsolatingProxy
in interfaceOsgiServiceProxyFactory
-
createProxy
Description copied from interface:OsgiServiceProxyFactory
Creates a service proxy with a default timeout.- Specified by:
createProxy
in interfaceOsgiServiceProxyFactory
-
afterPropertiesSet
- Throws:
Exception
-
onPluginFrameworkShutdownEvent
public void onPluginFrameworkShutdownEvent(@NotNull @NotNull com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored)
-