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 OrgServiceImplCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return (SysConfig.getValue("orgservice.type") != null)&&(SysConfig.getValue("orgservice.type").equals("orgServiceImpl"));
    }
}