|
|
@ -134,6 +134,8 @@ public class ScheduleUtils
|
|
|
|
return StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR);
|
|
|
|
return StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Object obj = SpringUtils.getBean(StringUtils.split(invokeTarget, ".")[0]);
|
|
|
|
Object obj = SpringUtils.getBean(StringUtils.split(invokeTarget, ".")[0]);
|
|
|
|
return StringUtils.containsAnyIgnoreCase(obj.getClass().getPackage().getName(), Constants.JOB_WHITELIST_STR);
|
|
|
|
String beanPackageName = obj.getClass().getPackage().getName();
|
|
|
|
|
|
|
|
return StringUtils.containsAnyIgnoreCase(beanPackageName, Constants.JOB_WHITELIST_STR)
|
|
|
|
|
|
|
|
&& !StringUtils.containsAnyIgnoreCase(beanPackageName, Constants.JOB_ERROR_STR);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|