|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.service.manager.ServiceUtil
public final class ServiceUtil
This class provides facilities for managing the JOnAS services implemented as OSGI services.
Field Summary | |
---|---|
static String |
SERVICE_NAME_PROP
OSGI service property defined for all the JOnAS services, giving the service name for JOnAS management support. |
Method Summary | |
---|---|
static String |
getJOnASService(org.osgi.framework.ServiceReference serviceReference)
If the given ServiceReference has the "jonas.service" property set, returns its value which represents the JOnAS service name. |
static List<String> |
getRunningServices(org.osgi.framework.BundleContext bc)
Returns the names of the JOnAS services that are running on the OSGi platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_NAME_PROP
Method Detail |
---|
public static String getJOnASService(org.osgi.framework.ServiceReference serviceReference)
serviceReference
- the ServiceReference
public static List<String> getRunningServices(org.osgi.framework.BundleContext bc) throws org.osgi.framework.InvalidSyntaxException
bc
- The BundleContext
org.osgi.framework.InvalidSyntaxException
- Cannot get the OSGi services
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |