Package org.dellroad.jct.core.simple
Interface CommandBundle
- All Superinterfaces:
Map<String,
,SimpleCommand> SortedMap<String,
SimpleCommand>
- All Known Implementing Classes:
Bundle
,Bundle
,TreeMapBundle
A collection of
SimpleCommand
s keyed by name.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a one line description of this bundle.static Stream<CommandBundle>
Scan the classpath forCommandBundle
implementations, instantiate, and return them.static Stream<CommandBundle>
scanAndGenerate
(ClassLoader loader) Scan the classpath forCommandBundle
implementations and instantiate and return them.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Method Details
-
getDescription
String getDescription()Get a one line description of this bundle.- Returns:
- bundle description
-
scanAndGenerate
Scan the classpath forCommandBundle
implementations, instantiate, and return them.This method uses the current thread's context class loader.
- Returns:
- stream of auto-generated
CommandBundle
's - See Also:
-
scanAndGenerate
Scan the classpath forCommandBundle
implementations and instantiate and return them.- Parameters:
loader
- class loader, or null for the system class loader- Returns:
- stream of auto-generated
CommandBundle
's - See Also:
-