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 TypeMethodDescriptionboolean
canHandleObject
(Object obj, boolean staticInit) Returns true if this object loader can handle the given objectio.quarkus.gizmo.ResultHandle
Load 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
-true
if this loader is for a static init method,false
otherwise- Returns:
- the result handle of the value, or
null
if 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
-