Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for JobConfig properties with non-String types. No-arg and al…
…l-arg constructor for JobConfig
- Loading branch information
1 parent
f45980c
commit 344e957
Showing
2 changed files
with
16 additions
and
8 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
10 changes: 3 additions & 7 deletions
10
util/src/main/java/com/github/chrisgleissner/springbatchrest/util/core/JobConfig.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,18 +1,14 @@ | ||
package com.github.chrisgleissner.springbatchrest.util.core; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.Singular; | ||
import lombok.*; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@Data @NoArgsConstructor @AllArgsConstructor @Builder(toBuilder = true) | ||
public class JobConfig { | ||
|
||
private String name; | ||
@Singular("property") | ||
private Map<String, String> properties = new HashMap<>(); | ||
private Map<String, Object> properties = new HashMap<>(); | ||
private boolean asynchronous; | ||
} |