-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of default Configurator values (#5)
- Loading branch information
1 parent
f1ce805
commit 5026e18
Showing
6 changed files
with
60 additions
and
82 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
24 changes: 0 additions & 24 deletions
24
latte/src/main/java/gg/beemo/latte/config/annotations/ConfiguratorDefault.java
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
latte/src/main/java/gg/beemo/latte/config/annotations/ConfiguratorRedacted.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package gg.beemo.latte.config.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Tells the {@link gg.beemo.latte.config.Configurator} to not log this | ||
* field's value upon initialization. | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface ConfiguratorRedacted { | ||
} |
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,10 +1,7 @@ | ||
package gg.beemo.vanilla; | ||
|
||
import gg.beemo.latte.config.annotations.ConfiguratorDefault; | ||
|
||
public class Config { | ||
|
||
@ConfiguratorDefault(defaultValue = "localhost:9094") | ||
public static String KAFKA_HOST; | ||
public static String KAFKA_HOST = "localhost:9092"; | ||
|
||
} |
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