public abstract class AbstractService extends java.lang.Object implements Lifecycle
Modifier and Type | Field and Description |
---|---|
protected org.osgi.framework.BundleContext |
m_bundleContext
The bundle context.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractService(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<?> type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.osgi.framework.BundleContext |
getBundleContext() |
protected org.osgi.framework.ServiceRegistration<?> |
getRegistration() |
protected java.util.Dictionary<java.lang.String,?> |
getServiceProperties() |
boolean |
isRegistered()
Is this service registered or not ?
|
protected org.osgi.framework.ServiceRegistration<?> |
registerService() |
void |
start()
On start, registers the service.
|
void |
stop()
On stop, un-registers the service.
|
protected final org.osgi.framework.BundleContext m_bundleContext
protected AbstractService(org.osgi.framework.BundleContext bundleContext, java.lang.Class<?> type)
bundleContext
- the bundle contexttype
- the specificationpublic void start()
protected org.osgi.framework.ServiceRegistration<?> registerService()
public void stop()
protected java.util.Dictionary<java.lang.String,?> getServiceProperties()
protected org.osgi.framework.BundleContext getBundleContext()
protected org.osgi.framework.ServiceRegistration<?> getRegistration()
public boolean isRegistered()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.