|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mbs.services.device.abstractdriver.AbstractDeviceActivator
public abstract class AbstractDeviceActivator
This abstract class should be used to implement
bundle activators for all device drivers.
The only task of subclasses is to implement the
abstract createDrivers method.
| Field Summary | |
|---|---|
protected org.osgi.framework.BundleContext |
bc
BundleContext instance passed to the start method |
protected AbstractDeviceDriver[] |
drivers
AbstractDeviceDriver services, registered in the framework |
| Constructor Summary | |
|---|---|
AbstractDeviceActivator()
|
|
| Method Summary | |
|---|---|
abstract AbstractDeviceDriver[] |
createDrivers()
Creates the Driver service instances. |
void |
start(org.osgi.framework.BundleContext bc)
Starts the driver bundle. |
void |
stop(org.osgi.framework.BundleContext bc)
Stops the driver bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.osgi.framework.BundleContext bc
protected AbstractDeviceDriver[] drivers
| Constructor Detail |
|---|
public AbstractDeviceActivator()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext bc)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorbc - this Bundle's BundleContext object
java.lang.Exception - if driver instantiation failspublic void stop(org.osgi.framework.BundleContext bc)
stop in interface org.osgi.framework.BundleActivatorbc - this Bundle's bundle context object
public abstract AbstractDeviceDriver[] createDrivers()
throws java.lang.Exception
Driver service instances.
java.lang.Exception - if the driver cannot be created for some reason
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||