public interface Configuration
Modifier and Type | Method and Description |
---|---|
java.util.List<Aggregator> |
getAggregators()
Returns all configured aggregators.
|
<T> java.util.Optional<T> |
getContext(java.lang.Class<T> contextType)
Resolve context by given type.
|
java.util.List<Plugin> |
getPlugins()
Returns all configured plugins.
|
java.util.List<Reader> |
getReaders()
Returns all configured readers.
|
java.util.List<Widget> |
getWidgets()
Returns all configured widgets.
|
default <T> T |
requireContext(java.lang.Class<T> contextType)
The same as
getContext(Class) but throws an exception
if context doesn't present. |
java.util.List<Plugin> getPlugins()
java.util.List<Aggregator> getAggregators()
java.util.List<Reader> getReaders()
java.util.List<Widget> getWidgets()
<T> java.util.Optional<T> getContext(java.lang.Class<T> contextType)
T
- the java type of context.contextType
- type of context to resolve.default <T> T requireContext(java.lang.Class<T> contextType)
getContext(Class)
but throws an exception
if context doesn't present.ContextNotFoundException
- if no such context present.