public class SimpleContext extends AbstractContext
| Constructor and Description | 
|---|
SimpleContext(SimpleContextContent contextContent)
Creates a new instance of this class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
find(Class<T> type)
Finds an instance of the specified type in this context. 
 | 
<T> Collection<? extends T> | 
findAll(Class<T> type)
Finds all instances of the specified type in this context. 
 | 
addContextListener, fireContextEvent, getListeners, removeContextListenerpublic SimpleContext(SimpleContextContent contextContent)
contextContent - a writable contentpublic <T> T find(Class<T> type)
T - the specified typetype - the specified typenull if no instance was
 found.
 TODO: return Optional?public <T> Collection<? extends T> findAll(Class<T> type)
T - the specified typetype - the specified typeList instead of Collection? <T> instead of <? extends T>?Copyright © 2012–2016 Drombler. All rights reserved.