|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An IImportServiceRecord represents a service imported by a
bundle and acquired from the OSGi framework. The following responsibilities
are declared:
Every IImportServiceRecord must having an owner that is an
implementation of the interface IImportServiceRecordOwner. The
owner is responsible for handling call-back notifications such as when a
service is acquired and released.
Note: Since this abstraction is used internally by the SAT bundle
this interface is typically not used directly by bundle developers. For
cases where subclassing the BaseBundleActivator is not
appropriate, instances of this interface can be created using the
FactoryUtility class.
| Method Summary | |
void |
acquire(IImportServiceRecordOwner owner)
Try and acquire the imported service from the OSGi framework. |
Filter |
getFilter()
Query the LDAP filter for the imported service. |
String |
getName()
Query the name of the imported service. |
boolean |
isAcquired()
Query whether the imported service is acquired. |
void |
release()
Release the imported service back to the OSGi framework. |
void |
setFilter(Filter filter)
Sets the filter used to acquire the imported service. |
| Methods inherited from interface org.eclipse.soda.sat.core.record.interfaces.IServiceRecord |
getProperty, getPropertyKeys, getService, hasService, setService |
| Method Detail |
public void acquire(IImportServiceRecordOwner owner)
owner - The owner of the import service record.public Filter getFilter()
public String getName()
public boolean isAcquired()
public void release()
public void setFilter(Filter filter)
filter - The LDAP filter used to acquire the imported service.
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.