|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IImportServiceRecordContainerLenientOwner
When an IImportServiceRecordContainer
is created it must be
given an owner that will handle call-back notifications. The
IImportServiceRecordContainerLenientOwner
interface declares the
role of a container's owner, which has the following responsibilities:
IImportServiceContainer
method acquire(IImportServiceRecordContainerOwner)
has been
called. When a lenient container is acquired, there are no
guarantees as to whether any or all of its import service records
are acquired.
IImportServiceContainer
method release()
has been called. When a lenient container
is release, all its import service records are released.
Note: Since this abstraction is used internally by the SAT bundle this interface is typically not used directly by bundle developers.
Method Summary | |
---|---|
void |
serviceAcquired(IImportServiceRecordContainer container,
IImportServiceRecord record)
One of the container's IImportServiceRecord objects has been
acquired. |
void |
serviceReleased(IImportServiceRecordContainer container,
IImportServiceRecord record)
One of the container's IImportServiceRecord objects has been
released. |
Methods inherited from interface org.eclipse.soda.sat.core.record.container.interfaces.IImportServiceRecordContainerOwner |
---|
acquired, released |
Method Detail |
---|
void serviceAcquired(IImportServiceRecordContainer container, IImportServiceRecord record)
IImportServiceRecord
objects has been
acquired. This call-back is only sent when the container is
non-strict. The purpose of this call-back is to inform the
container's owner that it should handle the acquisition of an imported
service.
Typically the container's owner responds by starting to use the imported
service. Just because this call-back is sent, does not mean that the
container itself is fully acquired, although it might be. Use the
IImportServiceRecordContainer
method isAcquired()
to query whether it is acquired or not.
container
- The owned container.record
- The acquired import service record.void serviceReleased(IImportServiceRecordContainer container, IImportServiceRecord record)
IImportServiceRecord
objects has been
released. This call-back is only sent when the container is
non-strict. The purpose of this call-back is to inform the
container's owner that it should handle the release of an imported
service.
Typically the container's owner responds by stopping using the imported
service, although it would be equally legal for the owner to update the
IImportServiceRecord
object's properties and attempt to
reacquire the released service.
container
- The owned container.record
- The acquired import service record.
|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.