public final class DirectiveInfo extends Object
DirectiveInfo contains information about each individual
directive loaded. It also holds additional information like usage, description,
scope,categories and the whether the directive is deprecated or not.
Each instance of this class contains information for one directive.SystemDirectiveRegistry,
UserDirectiveRegistry,
CompositeDirectiveRegistry| Modifier and Type | Class and Description |
|---|---|
static class |
DirectiveInfo.Scope
Scope of the directive
|
| Constructor and Description |
|---|
DirectiveInfo(DirectiveInfo.Scope scope,
Class<? extends Directive> directive)
Initializes the class
DirectiveInfo. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
categories() |
UsageDefinition |
definition() |
boolean |
deprecated() |
String |
description() |
Directive |
instance()
Creates a new instance of
Directive. |
String |
name() |
DirectiveInfo.Scope |
scope() |
String |
usage() |
public DirectiveInfo(DirectiveInfo.Scope scope, Class<? extends Directive> directive) throws IllegalAccessException, InstantiationException
DirectiveInfo.scope - of the directive.directive - a class of type directive.IllegalAccessException - thrown when an application tries to reflectively create an instanceInstantiationException - Thrown when an application tries to create an instance of a class
using the newInstance method in class Classpublic boolean deprecated()
Boolean type that indicates if Directive has been deprecated or not.public DirectiveInfo.Scope scope()
Scope type specifying either USER or SYSTEM scope the directive is deployed in.public String name()
String type specifying the name of the directive.public String usage()
String type containing the usage information of the directive.public String description()
String type providing the description for a directive.public UsageDefinition definition()
String type specifying the definition information of directive.public String[] categories()
String array providing the categories the directive is associated with.public Directive instance() throws IllegalAccessException, InstantiationException
Directive.Directive instance.IllegalAccessException - thrown when an application tries to reflectively create an instanceInstantiationException - Thrown when an application tries to create an instance of a class
using the newInstance method in class ClassCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.