|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IServiceRecordAction interface declares an API for executing
an action against IServiceRecord objects within an
IServiceRecordContainer. A single responsibilities is
declared:
An implementation of IServiceRecordAction is typically
state-less since it is usually executed against multiple service records.
This interface is used by the IServiceRecordContainer method
doForEach(IServiceRecordAction, Object) and is typically
anonymously implemented. For example, an action that collects the
names of the services within a container could be written and executed as
follows:
IServiceRecordAction action = new IServiceRecordAction() {
public boolean execute(IServiceRecord record, Object parameter) {
String name = record.getName();
Collection names = (Collection) parameter;
names.add(name);
return true;
}
};
Collection names = new ArrayList();
container.doForEach(action, names);
Note: Since this abstraction is used internally by the SAT bundle
this interface is typically not used directly by bundle developers.
IServiceRecordContainer.doForEach(org.eclipse.soda.sat.core.record.container.interfaces.IServiceRecordAction, java.lang.Object)| Method Summary | |
boolean |
execute(IServiceRecord record,
Object parameter)
Execute against the specified IServiceRecord, with an
optional parameter. |
| Method Detail |
public boolean execute(IServiceRecord record,
Object parameter)
IServiceRecord, with an
optional parameter.
record - The IServiceRecord on which to operate.parameter - An optional execution parameter.
IServiceRecordContainer to keep
iterating, false to stop.IServiceRecordContainer.doForEach(org.eclipse.soda.sat.core.record.container.interfaces.IServiceRecordAction, java.lang.Object)
|
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.