org.jobrunr.jobs.details.instructions.InvokeSpecialInstruction Maven / Gradle / Ivy
package org.jobrunr.jobs.details.instructions;
import org.jobrunr.JobRunrException;
import org.jobrunr.jobs.details.JobDetailsFinderContext;
import org.jobrunr.utils.reflection.ReflectionUtils;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.List;
import static org.jobrunr.jobs.details.JobDetailsGeneratorUtils.createObjectViaConstructor;
import static org.jobrunr.jobs.details.JobDetailsGeneratorUtils.findParamTypesFromDescriptorAsArray;
import static org.jobrunr.jobs.details.JobDetailsGeneratorUtils.toFQClassName;
import static org.jobrunr.utils.reflection.ReflectionUtils.toClass;
public class InvokeSpecialInstruction extends VisitMethodInstruction {
public InvokeSpecialInstruction(JobDetailsFinderContext jobDetailsBuilder) {
super(jobDetailsBuilder);
}
@Override
public Object invokeInstruction() {
if ("".equals(name)) {
String className = toFQClassName(owner);
Class>[] paramTypes = findParamTypesFromDescriptorAsArray(descriptor);
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy