public final class UsageRegistry extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
UsageRegistry.UsageEntry
A
UsageRegistry.UsageEntry defines the information about the directives that are available. |
| Constructor and Description |
|---|
UsageRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUsage(Class<? extends Executor> classz)
Adds a class that extends from
AbstractDirective to usage registry. |
List<UsageRegistry.UsageEntry> |
getAll() |
String |
getDescription(String directive)
Gets the description of a directive.
|
String |
getUsage(String directive)
Gets the usage of a directive.
|
public void addUsage(Class<? extends Executor> classz)
AbstractDirective to usage registry.classz - representing an AbstractDirective implementation.public String getUsage(String directive)
directive - for which usage is returned.public String getDescription(String directive)
directive - for which usage is returned.public List<UsageRegistry.UsageEntry> getAll()
UsageRegistry.UsageEntry.Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.