|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceFinder
Interface used to query for ServiceReferences. Each ServiceFinder is obtained from a specific Module, and the lookup rules are the following:
Method Summary | ||
---|---|---|
|
findService(java.lang.Class<T> serviceType)
Find a ServiceReference that implements the given type. |
|
|
findService(java.lang.reflect.Type serviceType)
Find a ServiceReference that implements the given type. |
|
|
findServices(java.lang.Class<T> serviceType)
Find ServiceReferences that implements the given type. |
|
|
findServices(java.lang.reflect.Type serviceType)
Find ServiceReferences that implements the given type. |
Method Detail |
---|
<T> ServiceReference<T> findService(java.lang.Class<T> serviceType) throws NoSuchServiceException
serviceType
- the type that the Service must implement
NoSuchServiceException
- if no service of serviceType is found<T> ServiceReference<T> findService(java.lang.reflect.Type serviceType) throws NoSuchServiceException
serviceType
- the type that the Service must implement
NoSuchServiceException
- if no service of serviceType is found<T> java.lang.Iterable<ServiceReference<T>> findServices(java.lang.Class<T> serviceType)
serviceType
- the type that the Services must implement
<T> java.lang.Iterable<ServiceReference<T>> findServices(java.lang.reflect.Type serviceType)
serviceType
- the type that the Services must implement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |