public class OSGiServiceUtil
extends java.lang.Object
Constructor and Description |
---|
OSGiServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static <S,R,E extends java.lang.Throwable> |
callService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<S> serviceClass,
com.liferay.petra.function.UnsafeFunction<S,R,E> unsafeFunction) |
public static <S,R,E extends java.lang.Throwable> R callService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<S> serviceClass, com.liferay.petra.function.UnsafeFunction<S,R,E> unsafeFunction) throws E extends java.lang.Throwable
E extends java.lang.Throwable