|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.WrapperList<Service>
org.restlet.util.ServiceList
public final class ServiceList
Modifiable list of services.
Constructor Summary | |
---|---|
ServiceList(Context context)
Constructor. |
Method Summary | ||
---|---|---|
void |
add(int index,
Service service)
Inserts the specified element at the specified position in this list. |
|
boolean |
add(Service service)
Adds a element at the end of the list. |
|
boolean |
addAll(Collection<? extends Service> services)
Appends all of the elements in the specified collection to the end of this list. |
|
boolean |
addAll(int index,
Collection<? extends Service> services)
Inserts all of the elements in the specified collection into this list at the specified position. |
|
|
get(Class<T> clazz)
Returns a service matching a given service class. |
|
Context |
getContext()
Returns the context. |
|
void |
set(List<Service> services)
Sets the list of services. |
|
void |
set(Service newService)
Replaces or adds a service. |
|
void |
setContext(Context context)
Sets the context. |
|
void |
start()
Starts each service. |
|
void |
stop()
Stops each service. |
Methods inherited from class org.restlet.util.WrapperList |
---|
clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceList(Context context)
context
- The context.Method Detail |
---|
public void add(int index, Service service)
WrapperList
add
in interface List<Service>
add
in class WrapperList<Service>
index
- The insertion position.service
- The element to insert.public boolean add(Service service)
WrapperList
add
in interface Collection<Service>
add
in interface List<Service>
add
in class WrapperList<Service>
public boolean addAll(Collection<? extends Service> services)
WrapperList
addAll
in interface Collection<Service>
addAll
in interface List<Service>
addAll
in class WrapperList<Service>
services
- The collection of elements to append.public boolean addAll(int index, Collection<? extends Service> services)
WrapperList
addAll
in interface List<Service>
addAll
in class WrapperList<Service>
index
- The insertion position.services
- The collection of elements to insert.public <T extends Service> T get(Class<T> clazz)
T
- The service type.clazz
- The service class to match.
public Context getContext()
public void set(List<Service> services)
services
- The list of services.public void set(Service newService)
newService
- The new service to set.public void setContext(Context context)
context
- The context.public void start() throws Exception
Exception
public void stop() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |