com.buglabs.bug.module.pub
Interface IModletFactory

All Known Implementing Classes:
Activator, Activator, Activator, Activator, Activator, Activator, Activator, Activator

public interface IModletFactory

A IModletFactory is able to create modlets. The factory descibes which type of modlet it can create.


Method Summary
 IModlet createModlet(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.
 

Method Detail

getModuleId

java.lang.String getModuleId()
Module Id that this factory supports. This ID is defined in the Hardware Module.

Returns:

getName

java.lang.String getName()
Get name of factory.

Returns:

getVersion

java.lang.String getVersion()
Version of IModlet this factory creates.

Returns:

createModlet

IModlet createModlet(BundleContext context,
                     int slotId)
Create an instance of the IModlet.

Parameters:
context -
slotId - 0 - 3
Returns: