Package org.mifosplatform.infrastructure.jobs.annotation.CronMethodParser

Examples of org.mifosplatform.infrastructure.jobs.annotation.CronMethodParser.ClassMethodNamesPair


        return schedulerFactoryBean.getScheduler();
    }

    private JobDetail createJobDetail(final ScheduledJobDetail scheduledJobDetail) throws Exception {
        final MifosPlatformTenant tenant = ThreadLocalContextUtil.getTenant();
        final ClassMethodNamesPair jobDetails = CronMethodParser.findTargetMethodDetails(scheduledJobDetail.getJobName());
        if (jobDetails == null) { throw new IllegalArgumentException(
                "Code has no @CronTarget with this job name (@see JobName); seems like DB/code are not in line: "
                        + scheduledJobDetail.getJobName()); }
        final Object targetObject = getBeanObject(Class.forName(jobDetails.className));
        final MethodInvokingJobDetailFactoryBean jobDetailFactoryBean = new MethodInvokingJobDetailFactoryBean();
View Full Code Here

TOP

Related Classes of org.mifosplatform.infrastructure.jobs.annotation.CronMethodParser.ClassMethodNamesPair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.