public interface Context
| Modifier and Type | Method and Description |
|---|---|
Context |
fork()
Clone context to a new independent instance
|
<T> T |
getComponent(ContextComponent<T> componentName) |
Map<? extends ContextComponent<?>,? extends Object> |
getComponents() |
<T> Context |
withComponent(ContextComponent<T> componentName,
T component) |
Context fork()
<T> Context withComponent(ContextComponent<T> componentName, T component)
componentName - a name of the specified component<T> T getComponent(ContextComponent<T> componentName)
componentName - a name of the specified componentMap<? extends ContextComponent<?>,? extends Object> getComponents()
Copyright © 2020. All rights reserved.