Package ca.uhn.fhir.context
Enum PerformanceOptionsEnum
- java.lang.Object
-
- java.lang.Enum<PerformanceOptionsEnum>
-
- ca.uhn.fhir.context.PerformanceOptionsEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PerformanceOptionsEnum>
public enum PerformanceOptionsEnum extends Enum<PerformanceOptionsEnum>
This enum contains options to be used forFhirContext.setPerformanceOptions(PerformanceOptionsEnum...)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFERRED_MODEL_SCANNINGWhen this option is set, model classes will not be scanned for children until the child list for the given type is actually accessed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PerformanceOptionsEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PerformanceOptionsEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFERRED_MODEL_SCANNING
public static final PerformanceOptionsEnum DEFERRED_MODEL_SCANNING
When this option is set, model classes will not be scanned for children until the child list for the given type is actually accessed.The effect of this option is that reflection operations to scan children will be deferred, and some may never happen if specific model types aren't actually used. This option is useful on environments where reflection is particularly slow, e.g. Android or low powered devices.
-
-
Method Detail
-
values
public static PerformanceOptionsEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PerformanceOptionsEnum c : PerformanceOptionsEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PerformanceOptionsEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-