Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
33
screwdriver-3.5.6/box/snippets/java/QuartzJob.java
Normal file
33
screwdriver-3.5.6/box/snippets/java/QuartzJob.java
Normal file
|
@ -0,0 +1,33 @@
|
|||
package +zoccolo+.job;
|
||||
|
||||
import +zoccolo+.task.impl.+Quartztask+TaskImpl;
|
||||
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.quartz.QuartzJobBean;
|
||||
import org.springframework.web.context.support.SpringBeanAutowiringSupport;
|
||||
|
||||
public class +Quartzjob+ extends QuartzJobBean {
|
||||
|
||||
private static final Logger log = Logger.getLogger(+Quartzjob+.class);
|
||||
|
||||
@Autowired
|
||||
+Quartztask+TaskImpl task;
|
||||
|
||||
@Override
|
||||
protected void executeInternal(JobExecutionContext arg0)
|
||||
|
||||
throws JobExecutionException {
|
||||
|
||||
try {
|
||||
log.debug("executeInternal...");
|
||||
SpringBeanAutowiringSupport
|
||||
.processInjectionBasedOnCurrentContext(this);
|
||||
task.execute(arg0);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue