package com.blueland.bpm.identity.util;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

import com.blueland.bpm.common.util.SysConfig;

public class UserServiceRestImplCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return (SysConfig.getValue("userservice.type") != null)&&(SysConfig.getValue("userservice.type").equals("userServiceRestImpl"));
    }
}