Package io.quarkus.deployment.recording
Interface ObjectLoader
-
public interface ObjectLoaderA segment of code generation which produces the necessary instructions to load the given object. The result handle is cached for reuse.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandleObject(Object obj, boolean staticInit)Returns true if this object loader can handle the given objectio.quarkus.gizmo.ResultHandleload(io.quarkus.gizmo.BytecodeCreator body, Object obj, boolean staticInit)Load the given object if possible.
-
-
-
Method Detail
-
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
boolean canHandleObject(Object obj, boolean staticInit)
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
-
-