public enum JaxrsScannerType extends Enum<JaxrsScannerType>
| Enum Constant and Description |
|---|
ANNOTATION
JAX-RS annotation scanner: the classes annotated with
Path will be included in the API definition. |
APPLICATION
JAX-RS
Application scanner: only the JAX-RS Application resource classes will be taken into
account for the API definition. |
APPLICATION_AND_ANNOTATION
JAX-RS
Application and annotation scanner: both the JAX-RS Application resource classes and the
classes annotated with Path will be included in the API definition. |
DEFAULT
Default scanner.
|
| Modifier and Type | Method and Description |
|---|---|
static JaxrsScannerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JaxrsScannerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JaxrsScannerType DEFAULT
public static final JaxrsScannerType APPLICATION
Application scanner: only the JAX-RS Application resource classes will be taken into
account for the API definition.
If an explicit API configuration is provided, the configuration resource classes and/or resource packages will be used to filter the JAX-RS application classes to include in the API definition.
public static final JaxrsScannerType ANNOTATION
Path will be included in the API definition.
Concrete implementations may also include classes with additional annotations.
If an explicit API configuration is provided, the configuration resource classes and/or resource packages will be used to filter the detected classes to include in the API definition.
public static final JaxrsScannerType APPLICATION_AND_ANNOTATION
Application and annotation scanner: both the JAX-RS Application resource classes and the
classes annotated with Path will be included in the API definition.
Concrete implementations may also include classes with additional annotations.
If an explicit API configuration is provided, the configuration resource classes and/or resource packages will be used to filter the detected classes to include in the API definition.
public static JaxrsScannerType[] values()
for (JaxrsScannerType c : JaxrsScannerType.values()) System.out.println(c);
public static JaxrsScannerType 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 nullCopyright © 2019 The Holon Platform. All rights reserved.