|
OSGi™ Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A basic interface for a Jini Driver.
This Driver acts as a bridge between a Jini network (community) and an OSGi framework. Using this driver, OSGi services can be exported to the Jini network, and Jini services from the Jini network can be imported into the OSGi framework. This results in two possible transformations: Jini-to-OSGi and OSGi-to-Jini. The Jini Driver is responsible for these transformations.
An OSGi service is a Jini service if it is registered in the framework with the specified properties.
In OSGi-to-Jini transformation, the driver registers OSGi services as Jini services in the discovered LUS.
In Jini-to-OSGi transformation it registers with the framework all discovered LUS and services in the LUS matching the given template.
The Jini Driver can be configured, through a set of properties, to export/import Jini Services.
The properties DEVICE_CATEGORY, EXPORT, LUS_EXPORT_GROUPS, SERVICE_ID, and ENTRIES are service register properties for particular Jini Service (imported or exported).
The properties CM_LUS_IMPORT_GROUPS and CM_LUS_EXPORT_GROUPS are for configuration of the Jini Driver. These properties are kept in the Configuration Management Service defined by OSGi.
Field Summary | |
static java.lang.String |
CM_LUS_EXPORT_GROUPS
Optional service property, which should be a string array, containing the LUS groups that the driver is interested in, when exporting framework services to the Jini network. |
static java.lang.String |
CM_LUS_IMPORT_GROUPS
Optional service property, which should be a string array, containing the groups of LUS, that the driver is interested in, when importing Jini services. |
static java.lang.String |
DEVICE_CATEGORY
Constant for the value of the service property DEVICE_CATEGORY used by all Jini services. |
static java.lang.String |
ENTRIES
Optional service property, which should be an Entry array, holding
the attributes set of the framework service that represents Jini
proxy in the registration with a LUS. |
static java.lang.String |
EXPORT
The Export service property is a hint that marks an OSGi service to be picked up and exported by the Jini Driver in the Jini network. |
static java.lang.String |
LUS_EXPORT_GROUPS
Optional service property, which should contain a string array of the LUS groups that are of interest to the OSGi service. |
static java.lang.String |
SERVICE_ID
Optional service property, which should contain a string representation of the Jini service ID. |
Method Summary | |
net.jini.core.lookup.ServiceTemplate[] |
getServiceTemplates()
Gets the current set of templates that is used for searching and registering services registered in discovered LUS. |
void |
setServiceTemplates(net.jini.core.lookup.ServiceTemplate[] template)
The Jini Driver is defined as a Service Factory. |
Field Detail |
public static final java.lang.String DEVICE_CATEGORY
Value: jini
Constants.DEVICE_CATEGORY
,
Constant Field Valuespublic static final java.lang.String EXPORT
The property has no value. The name of the property is jini.export
public static final java.lang.String LUS_EXPORT_GROUPS
public static final java.lang.String SERVICE_ID
public static final java.lang.String ENTRIES
Entry
array, holding
the attributes set of the framework service that represents Jini
proxy in the registration with a LUS.
The name of the property is jini.entries.
Entry
,
Constant Field Valuespublic static final java.lang.String CM_LUS_IMPORT_GROUPS
public static final java.lang.String CM_LUS_EXPORT_GROUPS
Method Detail |
public void setServiceTemplates(net.jini.core.lookup.ServiceTemplate[] template)
The ServiceTemplate(null, null, null) matches all services.
template
- template to be added.public net.jini.core.lookup.ServiceTemplate[] getServiceTemplates()
|
OSGi™ Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |