Class OsgiServiceProxyFactoryImpl

java.lang.Object
com.atlassian.bamboo.plugin.osgi.OsgiServiceProxyFactoryImpl
All Implemented Interfaces:
OsgiServiceProxyFactory

public class OsgiServiceProxyFactoryImpl extends Object implements OsgiServiceProxyFactory
  • 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

      public <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
      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 interface OsgiServiceProxyFactory
    • createNonIsolatingProxy

      public <T> T createNonIsolatingProxy(Class<T> apiClass, long timeoutInMillis)
      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 interface OsgiServiceProxyFactory
    • createProxy

      public <T> T createProxy(Class<T> apiClass)
      Description copied from interface: OsgiServiceProxyFactory
      Creates a service proxy with a default timeout.
      Specified by:
      createProxy in interface OsgiServiceProxyFactory
    • afterPropertiesSet

      @PostConstruct public void afterPropertiesSet() throws Exception
      Throws:
      Exception
    • onPluginFrameworkShutdownEvent

      public void onPluginFrameworkShutdownEvent(@NotNull @NotNull com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent ignored)