Package org.rribbit.retrieval
Interface ListenerObjectRetriever
- All Known Implementing Classes:
CachedListenerObjectRetriever
,DefaultListenerObjectRetriever
public interface ListenerObjectRetriever
A
ListenerObjectRetriever
retrieves the ListenerObject
s that were created by one or more ListenerObjectCreator
s.- Author:
- G.J. Schouten
-
Method Summary
Modifier and TypeMethodDescriptiongetListenerObjects
(Class<?> returnType) Returns aCollection
ofListenerObject
s that satisfy the following requirements.getListenerObjects
(Class<?> returnType, String hint) Returns aCollection
ofListenerObject
s that satisfy the following requirements.getListenerObjects
(String hint) Returns aCollection
ofListenerObject
s that satisfy the following requirements.
-
Method Details
-
getListenerObjects
Collection<ListenerObject> getListenerObjects()- Returns:
- a
Collection
of all knownListenerObject
s, or an emptyCollection
if there are none. This method never returns null.
-
getListenerObjects
Returns aCollection
ofListenerObject
s that satisfy the following requirements.- The parameter 'returnType' is assignable from the returntype of the
ListenerObject
- Parameters:
returnType
- the return type that has to be assignable from the returntype of eachListenerObject
- Returns:
- a
Collection
ofListenerObject
s that satisfy the above requirements, or an emptyCollection
if there were no matches. This method never returns null. - Throws:
IllegalArgumentException
- when 'returnType' is 'null'
- The parameter 'returnType' is assignable from the returntype of the
-
getListenerObjects
Returns aCollection
ofListenerObject
s that satisfy the following requirements.- The hints of the
ListenerObject
must contain the 'hint' parameter
- Parameters:
hint
- the hint that has to be contained by the hints of eachListenerObject
- Returns:
- a
Collection
ofListenerObject
s that satisfy the above requirements, or an emptyCollection
if there were no matches. This method never returns null. - Throws:
IllegalArgumentException
- when 'hint' is 'null'
- The hints of the
-
getListenerObjects
Returns aCollection
ofListenerObject
s that satisfy the following requirements.- The parameter 'returnType' is assignable from the returntype of the
ListenerObject
- The hints of the
ListenerObject
must contain the 'hint' parameter
- Parameters:
returnType
- the return type that has to be assignable from the returntype of eachListenerObject
hint
- the hint that has to be contained by the hints of eachListenerObject
- Returns:
- a
Collection
ofListenerObject
s that satisfy the above requirements, or an emptyCollection
if there were no matches. This method never returns null. - Throws:
IllegalArgumentException
- when 'returnType' or 'hint' is 'null'
- The parameter 'returnType' is assignable from the returntype of the
-