Class ResourceMethodListenerImplementor
- java.lang.Object
-
- io.quarkus.rest.data.panache.deployment.ResourceMethodListenerImplementor
-
public abstract class ResourceMethodListenerImplementor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<io.quarkus.gizmo.FieldDescriptor,org.jboss.jandex.ClassInfo>listenerFieldsprotected static StringON_AFTERprotected static StringON_AFTER_ADD_METHOD_NAMEprotected static StringON_AFTER_DELETE_METHOD_NAMEprotected static StringON_AFTER_UPDATE_METHOD_NAMEprotected static StringON_BEFORE_ADD_METHOD_NAMEprotected static StringON_BEFORE_DELETE_METHOD_NAMEprotected static StringON_BEFORE_UPDATE_METHOD_NAME
-
Constructor Summary
Constructors Constructor Description ResourceMethodListenerImplementor(io.quarkus.gizmo.ClassCreator cc, List<org.jboss.jandex.ClassInfo> resourceMethodListeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jboss.jandex.MethodInfofindMethodByName(org.jboss.jandex.ClassInfo classInfo, String methodName)protected voidinvokeMethodUsingEntity(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)protected voidinvokeMethodUsingId(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle id)voidonBeforeAdd(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)voidonBeforeDelete(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle id)voidonBeforeUpdate(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)protected voidprocessEventListener(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle eventListenerContainer, io.quarkus.gizmo.ResultHandle parameter)
-
-
-
Field Detail
-
ON_AFTER
protected static final String ON_AFTER
- See Also:
- Constant Field Values
-
ON_BEFORE_ADD_METHOD_NAME
protected static final String ON_BEFORE_ADD_METHOD_NAME
- See Also:
- Constant Field Values
-
ON_AFTER_ADD_METHOD_NAME
protected static final String ON_AFTER_ADD_METHOD_NAME
- See Also:
- Constant Field Values
-
ON_BEFORE_UPDATE_METHOD_NAME
protected static final String ON_BEFORE_UPDATE_METHOD_NAME
- See Also:
- Constant Field Values
-
ON_AFTER_UPDATE_METHOD_NAME
protected static final String ON_AFTER_UPDATE_METHOD_NAME
- See Also:
- Constant Field Values
-
ON_BEFORE_DELETE_METHOD_NAME
protected static final String ON_BEFORE_DELETE_METHOD_NAME
- See Also:
- Constant Field Values
-
ON_AFTER_DELETE_METHOD_NAME
protected static final String ON_AFTER_DELETE_METHOD_NAME
- See Also:
- Constant Field Values
-
listenerFields
protected final Map<io.quarkus.gizmo.FieldDescriptor,org.jboss.jandex.ClassInfo> listenerFields
-
-
Constructor Detail
-
ResourceMethodListenerImplementor
public ResourceMethodListenerImplementor(io.quarkus.gizmo.ClassCreator cc, List<org.jboss.jandex.ClassInfo> resourceMethodListeners)
-
-
Method Detail
-
onBeforeAdd
public void onBeforeAdd(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)
-
onBeforeUpdate
public void onBeforeUpdate(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)
-
onBeforeDelete
public void onBeforeDelete(io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle id)
-
invokeMethodUsingEntity
protected void invokeMethodUsingEntity(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle entity)
-
invokeMethodUsingId
protected void invokeMethodUsingId(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle id)
-
processEventListener
protected void processEventListener(String methodName, io.quarkus.gizmo.BytecodeCreator methodCreator, io.quarkus.gizmo.ResultHandle eventListenerContainer, io.quarkus.gizmo.ResultHandle parameter)
-
findMethodByName
protected org.jboss.jandex.MethodInfo findMethodByName(org.jboss.jandex.ClassInfo classInfo, String methodName)
-
-