Feature that substitutes boolean field values that match a certain pattern
with values pre-computed AOT without causing class build-time initialization.
It is possible to pass
-Dspring.native.precompute.log=verboseas a
native-imagecompiler build argument to display detailed logs about pre-computed fields.
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern[] | |
| private final ThrowawayClassLoader | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | beforeAnalysis(Feature.
The supported operations that the feature can perform at this time accessOverrides default org. |
| private void | |
| private Object |
| patterns | back to summary |
|---|---|
| private static final Pattern[] patterns | |
| throwawayClassLoader | back to summary |
|---|---|
| private final ThrowawayClassLoader throwawayClassLoader | |
| verbose | back to summary |
|---|---|
| private static final boolean verbose | |
| PreComputeFieldFeature | back to summary |
|---|---|
| pack-priv PreComputeFieldFeature() | |
| beforeAnalysis | back to summary |
|---|---|
| public void beforeAnalysis(Feature. Overrides default org. Doc from org. Handler for initializations before the static analysis.
| |
| iterateFields | back to summary |
|---|---|
| private void iterateFields(Feature. | |
| provideFieldValue | back to summary |
|---|---|
| private Object provideFieldValue(Field field) throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException | |