public static interface Jooby.EnvPredicate
{
on("dev", () -> {
// run something on dev
}).orElse(() -> {
// run something on prod
});
}
Modifier and Type | Method and Description |
---|---|
void |
orElse(Consumer<com.typesafe.config.Config> callback)
{
on("dev", () -> {
// run something on dev
}).orElse(conf -> {
// run something on prod
});
}
|
default void |
orElse(Runnable callback)
{
on("dev", () -> {
// run something on dev
}).orElse(() -> {
// run something on prod
});
}
|
default void orElse(Runnable callback)
{
on("dev", () -> {
// run something on dev
}).orElse(() -> {
// run something on prod
});
}
callback
- Env callback.void orElse(Consumer<com.typesafe.config.Config> callback)
{
on("dev", () -> {
// run something on dev
}).orElse(conf -> {
// run something on prod
});
}
callback
- Env callback.Copyright © 2017. All rights reserved.