|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.ServiceUtil
public class ServiceUtil
OSGi service utilities.
Constructor Summary | |
---|---|
ServiceUtil()
|
Method Summary | |
---|---|
static int |
getRanking(ServiceReference ref)
Returns the service ranking of a service, based on its service reference. |
static long |
getServiceId(ServiceReference ref)
Returns the service ID of a service, based on its service reference. |
static boolean |
isAspect(ServiceReference ref)
Determines if the service is an aspect as defined by the dependency manager. |
static String |
toString(ServiceReference ref)
Converts a service reference to a string, listing both the bundle it was registered from and all properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceUtil()
Method Detail |
---|
public static int getRanking(ServiceReference ref)
ref
- the service reference to determine the ranking for
public static long getServiceId(ServiceReference ref)
ref
- the service reference to determine the service ID of
public static boolean isAspect(ServiceReference ref)
ref
- the service reference
true
if it's an aspect, false
otherwisepublic static String toString(ServiceReference ref)
ref
- the service reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |