public class FacadeContext extends Object implements Context
| Constructor and Description |
|---|
FacadeContext(Map<Class<?>,Iterable<?>> services,
Map<String,?> bindings) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
lookup(Class<T> serviceClass,
Predicate<T,Context>... selectors)
Looks up single object (service) by type.
|
Object |
lookup(String name)
Looks up object by name.
|
<T> Iterator<T> |
lookupAll(Class<T> serviceClass,
Predicate<T,Context>... selectors)
Looks up all services of given type.
|
public Object lookup(String name)
Contextpublic <T> T lookup(Class<T> serviceClass, Predicate<T,Context>... selectors)
Context