|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.utils.service.ServiceUtils<T>
T - the typepublic final class ServiceUtils<T>
The Class ServiceHelper.
| Method Summary | ||
|---|---|---|
static
|
getService(BundleContext context,
java.lang.Class<T> clazz)
Gets the service with default wait delay. |
|
static
|
getService(BundleContext context,
java.lang.Class<T> clazz,
long timeout)
Uses a ServiceTracker to get the given DeclarativeService. |
|
static
|
getService(java.lang.Class<T> clazz)
Gets the service with default wait delay using the BundleContext of UtilsActivator. |
|
static
|
getService(java.lang.Class<T> clazz,
long timeout)
Gets the service with the given wait delay using the BundleContext of UtilsActivator. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T getService(BundleContext context,
java.lang.Class<T> clazz,
long timeout)
throws java.lang.InterruptedException
T - expected service classclazz - the service class of the DeclarativeService interfacetimeout - the number of milliseconds to wait for the ServiceTracker to find the servicecontext - the context
java.lang.InterruptedException - a InterruptedException
public static <T> T getService(BundleContext context,
java.lang.Class<T> clazz)
throws java.lang.InterruptedException
T - expected service classclazz - the clazzcontext - the context
java.lang.InterruptedException - the interrupted exception
public static <T> T getService(java.lang.Class<T> clazz,
long timeout)
throws java.lang.InterruptedException
T - expected service classclazz - the clazztimeout - the number of milliseconds to wait for the ServiceTracker to find the service
java.lang.InterruptedException - the interrupted exception
public static <T> T getService(java.lang.Class<T> clazz)
throws java.lang.InterruptedException
T - expected service classclazz - the clazz
java.lang.InterruptedException - the interrupted exception
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||