Last active
December 18, 2015 12:28
-
-
Save andrus/f04368dd5ad1d307b001 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nhl.league.job; | |
import com.google.inject.Binder; | |
import com.google.inject.Module; | |
import com.nhl.bootique.Bootique; | |
import com.nhl.bootique.job.runtime.JobBinder; | |
import com.nhl.league.job.job.CayenneJob; | |
import com.nhl.league.job.job.LinkMoveJob; | |
import com.nhl.league.job.job.LongRunningJob; | |
import com.nhl.league.job.job.ThrowingJob; | |
public class LJApplication implements Module { | |
public static void main(String[] args) throws Exception { | |
Bootique.app(args) | |
.autoLoadModules() | |
.modules(LJApplication.class) | |
.run(); | |
} | |
@Override | |
public void configure(Binder binder) { | |
JobBinder.contributeTo(binder).jobTypes( | |
LongRunningJob.class, | |
ThrowingJob.class, | |
CayenneJob.class, | |
LinkMoveJob.class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment