Class OsgiServiceProxyFactoryImpl

    • Constructor Detail

      • 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 Detail

      • 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
      • afterPropertiesSet

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

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