Example usage for org.springframework.context.annotation Condition interface-usage

List of usage examples for org.springframework.context.annotation Condition interface-usage

Introduction

In this page you can find the example usage for org.springframework.context.annotation Condition interface-usage.

Usage

From source file com.hp.autonomy.frontend.find.core.beanconfiguration.AbstractEnumCondition.java

public abstract class AbstractEnumCondition<T extends Enum<T>> implements Condition {

    private final String systemProperty;
    private final T specifiedValue;
    private final T defaultValue;
    private final Class<T> typeToken;

From source file com.mobilepetroleum.AvailableOnClasspathCondition.java

class AvailableOnClasspathCondition implements Condition {

    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        Map<String, Object> attributes = metadata.getAnnotationAttributes(AvailableOnClasspath.class.getName());
        String className = String.valueOf(attributes.get("value"));
        try {

From source file com.consol.citrus.samples.todolist.jms.JmsEnabledCondition.java

/**
 * @author Christoph Deppisch
 */
public class JmsEnabledCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {

From source file com.consol.citrus.samples.todolist.soap.WebServiceEnabledCondition.java

/**
 * @author Christoph Deppisch
 */
public class WebServiceEnabledCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {

From source file com.cisco.cta.taxii.adapter.NonWindowsCondition.java

public class NonWindowsCondition implements Condition {

    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return !SystemUtils.IS_OS_WINDOWS;
    }
}

From source file com.cisco.cta.taxii.adapter.WindowsCondition.java

public class WindowsCondition implements Condition {

    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return SystemUtils.IS_OS_WINDOWS;
    }
}

From source file org.apereo.openlrs.conditions.RedisEnabledCondition.java

/**
 * @author ggilbert
 *
 */
public class RedisEnabledCondition implements Condition {

From source file io.gravitee.reporter.elastic.spring.conditional.AbstractElasticClientCondition.java

abstract class AbstractElasticClientCondition implements Condition {

    private static final String PROTOCOL_CONFIG_KEY = "reporters.elastic.protocol";

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {

From source file springfox.documentation.spring.web.VanillaSpringMvcCondition.java

class VanillaSpringMvcCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        try {
            classByName(context, "org.springframework.boot.SpringApplication");
            return false;

From source file org.broadleafcommerce.core.web.api.jaxrs.IsJaxrsAvailableCondition.java

/**
 * <p>
 * Condition class that checks for the presence of a JAXRS class to determine if JAXRS is actually loaded
 *
 * <p>
 * By default, this checks the existence of javax.ws.rs.core.UriInfo