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
public class A { | |
private B b; | |
@Inject | |
public A(B b) { | |
this.b = b; | |
} | |
} |
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
public class Relationships { | |
private Class<?> sourceType; | |
private Class<?> targetType; | |
private String name; | |
private String reverseName; | |
private int cardinalityBits; | |
private int toDepPKBits; | |
private Collection<String[]> forwardJoins; |
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
CommitLogListener listener = // custom listener | |
Module commitLog = CommitLogModule | |
.extend() | |
.addListener(listener) | |
.commitLogAnnotationEntitiesOnly() | |
.module(); | |
ServerRuntime runtime = ServerRuntime | |
.builder() |
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
public class App { | |
public static void main(String[] args) { | |
// "Imperative" Bootique style... | |
// While generally you need to setup command dispatch mechanism to run | |
// your app, here is an example of "imperative" Bootique. Instead of | |
// calling Bootique.run(), we create a runtime, get a service out of it, | |
// and call some methods. |
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; |