Package io.quarkus.deployment.recording
Interface ObjectLoader
public interface ObjectLoader
A segment of code generation which produces the necessary instructions to load the given object. The result handle
is cached for reuse.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleObject(Object obj, boolean staticInit) Returns true if this object loader can handle the given objectio.quarkus.gizmo.ResultHandleLoad the given object if possible.
-
Method Details
-
load
io.quarkus.gizmo.ResultHandle load(io.quarkus.gizmo.BytecodeCreator body, Object obj, boolean staticInit) Load the given object if possible.- Parameters:
body- the body to use for bytecode generation (notnull)obj- the object to substitute (notnull)staticInit-trueif this loader is for a static init method,falseotherwise- Returns:
- the result handle of the value, or
nullif this loader cannot load the given object
-
canHandleObject
Returns true if this object loader can handle the given object- Parameters:
obj- The objectstaticInit- If this is static init phase- Returns:
- true if this loader can handle the object
-