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<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.public <T> Collection<T> findAll(Class<T> type)
T - the specified typetype - the specified typeCopyright © 2012–2019 Drombler. All rights reserved.