public enum ConfigurationSource extends Enum<ConfigurationSource>
Enum Constant and Description |
---|
ANNOTATION
The source of configuration are annotation in the source code
|
API
The source of configuration is the programmatic API
|
XML
The source of configuration is XML configuration
|
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns this sources priority.
|
static ConfigurationSource |
max(ConfigurationSource a,
ConfigurationSource b)
Returns that configuration source from the given two sources, which has
the higher priority.
|
static ConfigurationSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigurationSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigurationSource ANNOTATION
public static final ConfigurationSource XML
public static final ConfigurationSource API
public static ConfigurationSource[] values()
for (ConfigurationSource c : ConfigurationSource.values()) System.out.println(c);
public static ConfigurationSource 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 int getPriority()
public static ConfigurationSource max(ConfigurationSource a, ConfigurationSource b)
a
- A configuration source.b
- Another configuration source.a
if
both have the same priority.Copyright © 2021 JBoss by Red Hat. All rights reserved.