public class CommandDescriptionsBuilder extends AbstractContextual
CommandDescriptions from
CommandDescriptionProviders.| Constructor and Description |
|---|
CommandDescriptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addManually(CommandDescriptionProvider provider,
String... contexts)
Manually add a
provider in the specified contexts. |
void |
addManually(CommandDescriptionProvider provider,
String context)
Manually adds a
provider in a specified context. |
CommandDescriptions |
build() |
void |
discoverProviders()
Adds all
CommandDescriptionProviders on the plugin index, with
their respective expected contexts. |
void |
discoverProviders(CommandDescriptionProvider.Scope... scopes)
Adds all
CommandDescriptionProviders on the plugin index having
any of the given scopes, with their respective expected contexts. |
void |
discoverProviders(Predicate<CommandDescriptionProvider> predicate)
Adds all
CommandDescriptionProviders on the plugin index that
match the given predicate, with their respective expected contexts. |
void |
verifyManuallyAdded()
Debugging helper.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetContextpublic void addManually(CommandDescriptionProvider provider, String context)
provider in a specified context. For
example, this is useful for adding stuff in a specific order, for
building nice keyconfig.yaml files.provider - the provider to add.context - the context to add to.public void addManually(CommandDescriptionProvider provider, String... contexts)
provider in the specified contexts. For
example, this is useful for adding stuff in a specific order, for
building nice keyconfig.yaml files.provider - the provider to add.contexts - the list of contexts to add to.public void discoverProviders()
CommandDescriptionProviders on the plugin index, with
their respective expected contexts.public void discoverProviders(CommandDescriptionProvider.Scope... scopes)
CommandDescriptionProviders on the plugin index having
any of the given scopes, with their respective expected contexts.public void discoverProviders(Predicate<CommandDescriptionProvider> predicate)
CommandDescriptionProviders on the plugin index that
match the given predicate, with their respective expected contexts.public void verifyManuallyAdded()
public CommandDescriptions build()
Copyright © 2015–2023 SciJava. All rights reserved.