@Override public ConditionOutcome getMatchOutcome( ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) { boolean groupEnabled = isEnabled(conditionContext, "camel.dataformat.", true); ConditionMessage.Builder message = ConditionMessage.forCondition("camel.dataformat.pgp"); if (isEnabled(conditionContext, "camel.dataformat.pgp.", groupEnabled)) { return ConditionOutcome.match(message.because("enabled")); } return ConditionOutcome.noMatch(message.because("not enabled")); }
@Override public ConditionOutcome getMatchOutcome( ConditionContext context, AnnotatedTypeMetadata metadata) { boolean endpointsEnabled = isEnabled(context, "endpoints.", true); ConditionMessage.Builder message = ConditionMessage.forCondition("Jolokia"); if (isEnabled(context, "endpoints.jolokia.", endpointsEnabled)) { return ConditionOutcome.match(message.because("enabled")); } return ConditionOutcome.noMatch(message.because("not enabled")); }