|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public boolean contains(IServiceRecord record)
record - A service record.
public 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.
public void empty()
public IServiceRecord get(String name)
name - A Service name.
null if the a service
record for the service does not exist.
public IServiceRecord get(String name,
Object service)
name - A service name.service - A service.
null if a service record does not exist.public IServiceRecord[] getAll()
public IServiceRecord[] getAll(String name)
name - A service name.
public boolean isEmpty()
public boolean removeAll(String name)
name - The name of the services to remove.
public int size()
|
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.