Skip to content

Instantly share code, notes, and snippets.

@andrus
Last active December 18, 2015 12:28
Show Gist options
  • Save andrus/f04368dd5ad1d307b001 to your computer and use it in GitHub Desktop.
Save andrus/f04368dd5ad1d307b001 to your computer and use it in GitHub Desktop.
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