|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.jmbeans.OsgiServicesUtil
public class OsgiServicesUtil
This class provides facilities for managing the JOnAS services implemented as OSGI services.
| Field Summary | |
|---|---|
static String |
SERVICE_MANDATORY_PROP
OSGI service property defined for all the JOnAS services, having value true for mandatory services: carol registry and jmx. |
static String |
SERVICE_NAME_PROP
OSGI service property defined for all the JOnAS services, giving the service name for JOnAS management support. |
| Constructor Summary | |
|---|---|
OsgiServicesUtil()
|
|
| Method Summary | |
|---|---|
static ArrayList<String> |
getJonasServices(org.osgi.framework.BundleContext bc)
Returns the names of the non-mandatory JOnAS services registered in the OSGI platform. |
static boolean |
jonasMandatoryService(org.osgi.framework.ServiceReference ref)
If the given ServiceReference has the "jonas.service.mandatory" property set, return this property value which represents the JOnAS service name. |
static String |
jonasService(org.osgi.framework.ServiceReference ref)
If the given ServiceReference has the "jonas.service" property set, return its value representing the JOnAS service name. |
static Object |
runningState()
Current implementation for the RUNNING state of a service. |
static Object |
stoppedState()
Current implementation for the STOPPED state of a service. |
| 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
public static final String SERVICE_MANDATORY_PROP
| Constructor Detail |
|---|
public OsgiServicesUtil()
| Method Detail |
|---|
public static String jonasService(org.osgi.framework.ServiceReference ref)
ref -
public static boolean jonasMandatoryService(org.osgi.framework.ServiceReference ref)
ref -
public static Object runningState()
public static Object stoppedState()
public static ArrayList<String> getJonasServices(org.osgi.framework.BundleContext bc)
throws org.osgi.framework.InvalidSyntaxException
bc - the BundleContext
org.osgi.framework.InvalidSyntaxException - could not get the OSGI services
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||