Skip to content

Commit

Permalink
perf($Quartz): package private AbstractQuartzJob.java
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Sep 26, 2021
1 parent 2729771 commit dfa2e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
DataSourceConfiguration.class
})
@MapperScan("com.jmsoftware.maf.springcloudstarter.*.mapper")
@ConditionalOnClass({MybatisPlusAutoConfiguration.class})
@ConditionalOnClass({MybatisPlusAutoConfiguration.class, MasterSlaveAutoRoutingPlugin.class})
public class MyBatisPlusConfiguration {
@Bean
public PaginationInnerInterceptor paginationInnerInterceptor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import static com.jmsoftware.maf.springcloudstarter.quartz.constant.ScheduleConstant.QUARTZ_JOB_CONFIGURATION;
Expand All @@ -16,11 +15,11 @@
* @author Johnny Miller (锺俊), email: johnnysviva@outlook.com, date: 9/24/2021 3:51 PM
*/
@Slf4j
public abstract class AbstractQuartzJob extends QuartzJobBean {
abstract class AbstractQuartzJob extends QuartzJobBean {
private static final String QUARTZ_JOB_CONFIGURATION_CLASS = QuartzJobConfiguration.class.getSimpleName();

@Override
protected final void executeInternal(JobExecutionContext context) throws JobExecutionException {
protected final void executeInternal(JobExecutionContext context) {
val sourceQuartzJobConfiguration = context.getMergedJobDataMap().get(QUARTZ_JOB_CONFIGURATION);
if (!(QUARTZ_JOB_CONFIGURATION_CLASS.equals(sourceQuartzJobConfiguration.getClass().getSimpleName()))) {
throw new IllegalArgumentException(
Expand Down

0 comments on commit dfa2e3d

Please sign in to comment.