public interface ToolRegistry
| Modifier and Type | Method and Description |
|---|---|
Map<Collection<String>,Class<? extends Tool<?,?>>> |
allTools()
Returns all registered tools
|
<IN,OUT,TOOL extends Tool<IN,OUT>> |
find(Class<TOOL> toolType)
Finds tool by its type.
|
Tool<?,?> |
find(String alias)
Finds tool by its alias.
|
<IN,OUT> Tool<IN,OUT> |
find(String alias,
Class<IN> inType,
Class<OUT> outType)
Finds tool by its alias.
|
<IN,OUT,TOOL extends Tool<IN,OUT>> |
register(Class<TOOL> tool)
Registers tool into the registry
|
<IN,OUT,TOOL extends Tool<IN,OUT>> ToolRegistry register(Class<TOOL> tool) throws InvalidToolException
tool - InvalidToolException<IN,OUT,TOOL extends Tool<IN,OUT>> TOOL find(Class<TOOL> toolType)
toolType - nullTool<?,?> find(String alias)
alias - the aliasnull<IN,OUT> Tool<IN,OUT> find(String alias, Class<IN> inType, Class<OUT> outType) throws InvalidToolException
alias - the aliasinType - the input type of the tooloutType - the output type of the toolnullInvalidToolException - in case that tool input/output type is differentMap<Collection<String>,Class<? extends Tool<?,?>>> allTools()
Copyright © 2014 JBoss by Red Hat. All rights reserved.