public class HazelcastConfigResourceCondition
extends java.lang.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 java.lang.String[] |
CLIENT_CONFIG_FILES |
static java.lang.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,
java.lang.String[] paths)
Checks whether any path given exists.
|
public static final java.lang.String[] CLIENT_CONFIG_FILES
public static final java.lang.String[] INSTANCE_CONFIG_FILES
public boolean matches(io.micronaut.context.condition.ConditionContext context)
matches
in interface io.micronaut.context.condition.Condition
protected boolean resourceExists(io.micronaut.context.condition.ConditionContext<?> context, java.lang.String[] paths)
context
- the condition contextpaths
- the paths to check