public interface CommandLocator
| Modifier and Type | Method and Description |
|---|---|
AdminCommand.Provider |
findProvider(String name)
Find a command provider that matches the given key or name, or throws
NoSuchElementException if no
matching provider was found. |
static CommandLocator |
fromServiceLocator()
Get a command locator that uses the
service locator mechanism to find providers by their service
key. |
Iterable<AdminCommand.Provider> |
getAllProviders()
Get an iterable of all of the command providers that are available through this command locator instance.
|
static CommandLocator |
withAdditionalCommand(Supplier<AdminCommand.Provider> command,
CommandLocator commands)
Augment the given command locator such that it also considers the command provider given through the supplier.
|
AdminCommand.Provider findProvider(String name) throws NoSuchElementException
NoSuchElementException if no
matching provider was found.name - The name of the provider to look for.NoSuchElementExceptionIterable<AdminCommand.Provider> getAllProviders()
static CommandLocator fromServiceLocator()
service locator mechanism to find providers by their service
key.static CommandLocator withAdditionalCommand(Supplier<AdminCommand.Provider> command, CommandLocator commands)
command - A supplier of an additional command. Note that this may be called multiple times.commands - The command locator to augment with the additional command provider.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.