public class HazelcastConfigResourceCondition extends Object implements io.micronaut.context.condition.Condition
| Modifier and Type | Class and Description |
|---|---|
static class |
HazelcastConfigResourceCondition.HazelcastClientConfigCondition
Condition that matches if any client config file exists.
|
static class |
HazelcastConfigResourceCondition.HazelcastInstanceConfigCondition
Condition that matches if any instance config file exitsts.
|
| Modifier and Type | Field and Description |
|---|---|
static String[] |
CLIENT_CONFIG_FILES |
static String[] |
INSTANCE_CONFIG_FILES |
| Constructor and Description |
|---|
HazelcastConfigResourceCondition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(io.micronaut.context.condition.ConditionContext context) |
protected boolean |
resourceExists(io.micronaut.context.condition.ConditionContext<?> context,
String[] paths)
Checks whether any path given exists.
|
public static final String[] CLIENT_CONFIG_FILES
public static final String[] INSTANCE_CONFIG_FILES
public boolean matches(io.micronaut.context.condition.ConditionContext context)
matches in interface io.micronaut.context.condition.Conditionprotected boolean resourceExists(io.micronaut.context.condition.ConditionContext<?> context,
String[] paths)
context - the condition contextpaths - the paths to check