com.buglabs.bug.module.gps
Class Activator

java.lang.Object
  extended by com.buglabs.bug.module.gps.Activator
All Implemented Interfaces:
IModletFactory, org.osgi.framework.BundleActivator

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, IModletFactory


Constructor Summary
Activator()
           
 
Method Summary
 IModlet createModlet(org.osgi.framework.BundleContext context, int slotId)
          Create an instance of the IModlet.
 java.lang.String getModuleId()
          Module Id that this factory supports.
 java.lang.String getName()
          Get name of factory.
 java.lang.String getVersion()
          Version of IModlet this factory creates.
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

createModlet

public IModlet createModlet(org.osgi.framework.BundleContext context,
                            int slotId)
Description copied from interface: IModletFactory
Create an instance of the IModlet.

Specified by:
createModlet in interface IModletFactory
slotId - 0 - 3
Returns:

getModuleId

public java.lang.String getModuleId()
Description copied from interface: IModletFactory
Module Id that this factory supports. This ID is defined in the Hardware Module.

Specified by:
getModuleId in interface IModletFactory
Returns:

getName

public java.lang.String getName()
Description copied from interface: IModletFactory
Get name of factory.

Specified by:
getName in interface IModletFactory
Returns:

getVersion

public java.lang.String getVersion()
Description copied from interface: IModletFactory
Version of IModlet this factory creates.

Specified by:
getVersion in interface IModletFactory
Returns: