Interface OsgiServiceProxyFactory

All Known Implementing Classes:
OsgiServiceProxyFactoryImpl

public interface OsgiServiceProxyFactory
Creates proxies to OSGi services.
  • Method Summary

    Modifier and Type
    Method
    Description
    <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.
  • Method Details

    • createNonIsolatingProxy

      <T> T createNonIsolatingProxy(Class<T> apiClass, long timeoutInMillis)
      Creates a service proxy with a custom timeout. Methods of this proxy will be executed within the classloader of the caller.
    • createProxy

      <T> T createProxy(Class<T> apiClass)
      Creates a service proxy with a default timeout.
    • createProxy

      <T> T createProxy(Class<T> apiClass, long timeoutInMillis)
      Creates a service proxy with a custom timeout. Methods of this proxy will be executed within the classloader of the OSGi bundle.