public static enum AgentConfiguration.Source extends Enum<AgentConfiguration.Source>
| Enum Constant and Description |
|---|
ANNOTATION
The source applicable for configuration performed via the
Agent annotation. |
DEFAULT
The source applicable for configuration performed programmatically.
|
XML
The source applicable for configuration via XML file.
|
| Modifier and Type | Method and Description |
|---|---|
static AgentConfiguration.Source |
getHighestPrecedenceSource(AgentConfiguration.Source... sources)
Returns the source with the highest precedence level among the specified sources
|
int |
getPrecedence()
Returns the precedence level for this source, ordered from highest to lowest, so that
higher-level sources have more precedence/importance than the other ones.
|
static AgentConfiguration.Source |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentConfiguration.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentConfiguration.Source ANNOTATION
Agent annotation.public static final AgentConfiguration.Source DEFAULT
public static final AgentConfiguration.Source XML
public static AgentConfiguration.Source[] values()
for (AgentConfiguration.Source c : AgentConfiguration.Source.values()) System.out.println(c);
public static AgentConfiguration.Source valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AgentConfiguration.Source getHighestPrecedenceSource(AgentConfiguration.Source... sources)
sources - an array of sources to be evaluatedDEFAULT if no parameter specifiedpublic int getPrecedence()
Copyright © 2021. All rights reserved.