-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading to the latest BQModuleProvider format
- Loading branch information
Showing
4 changed files
with
27 additions
and
30 deletions.
There are no files selected for viewing
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
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
9 changes: 6 additions & 3 deletions
9
bootique-job-zookeeper/src/main/java/io/bootique/job/zookeeper/ZkJobModuleProvider.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package io.bootique.job.zookeeper; | ||
|
||
import io.bootique.BQModuleProvider; | ||
import io.bootique.di.BQModule; | ||
import io.bootique.bootstrap.BuiltModule; | ||
|
||
public class ZkJobModuleProvider implements BQModuleProvider { | ||
|
||
@Override | ||
public BQModule module() { | ||
return new ZkJobModule(); | ||
public BuiltModule buildModule() { | ||
return BuiltModule.of(new ZkJobModule()) | ||
.provider(this) | ||
.description("Integrates Zookeeper-based Bootique job locks") | ||
.build(); | ||
} | ||
} |
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