|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IServiceRecordContainer
The IServiceRecordContainer interface declares the API for
service record containers.
This interface does not declare a responsibility for adding records to the container, since for type-safety reasons this is left for the sub-interfaces to define.
Note: Since this abstraction is used internally by the SAT bundle this interface is typically not used directly by bundle developers.
| Method Summary | |
|---|---|
boolean |
contains(IServiceRecord record)
Query the container for the existence of a service record. |
boolean |
doForEach(IServiceRecordAction action,
Object parameter)
For each service record execute an action. |
void |
empty()
Empty the container by removing all the records. |
IServiceRecord |
get(String name)
Get the service record for a named service in the container. |
IServiceRecord |
get(String name,
Object service)
Get the service record for the specified service. |
IServiceRecord[] |
getAll()
Get all the service records in the container. |
IServiceRecord[] |
getAll(String name)
Get all the service records in the container for the specified name. |
boolean |
isEmpty()
Query whether the receiver is empty. |
boolean |
removeAll(String name)
Remove from the container all the service with a name matching the specified name. |
int |
size()
Query the size of the container. |
| Method Detail |
|---|
boolean contains(IServiceRecord record)
record - A service record.
boolean doForEach(IServiceRecordAction action,
Object parameter)
false, stop iterating through the service records.
action - An action to perform.parameter - Optional parameter passed to the service record.
void empty()
IServiceRecord get(String name)
name - A Service name.
null if the a service
record for the service does not exist.
IServiceRecord get(String name,
Object service)
name - A service name.service - A service.
null if a service record does not exist.IServiceRecord[] getAll()
IServiceRecord[] getAll(String name)
name - A service name.
boolean isEmpty()
boolean removeAll(String name)
name - The name of the services to remove.
int size()
|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| 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.