Example usage for org.apache.ibatis.parsing PropertyParser parse

List of usage examples for org.apache.ibatis.parsing PropertyParser parse

Introduction

In this page you can find the example usage for org.apache.ibatis.parsing PropertyParser parse.

Prototype

public static String parse(String string, Properties variables) 

Source Link

Usage

From source file:com.baomidou.mybatisplus.MybatisMapperAnnotationBuilder.java

License:Apache License

private Properties convertToProperties(Property[] properties) {
    if (properties.length == 0) {
        return null;
    }/*from  w  w  w .jav  a  2  s .co m*/
    Properties props = new Properties();
    for (Property property : properties) {
        props.setProperty(property.name(),
                PropertyParser.parse(property.value(), configuration.getVariables()));
    }
    return props;
}