Java 类org.springframework.boot.configurationprocessor.fieldvalues.javac.JavaCompilerFieldValuesParser 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ConfigurationMetadataAnnotationProcessor.java   
@Override
public synchronized void init(ProcessingEnvironment env) {
    super.init(env);
    this.typeUtils = new TypeUtils(env);
    this.metadataStore = new MetadataStore(env);
    this.metadataCollector = new MetadataCollector(env,
            this.metadataStore.readMetadata());
    try {
        this.fieldValuesParser = new JavaCompilerFieldValuesParser(env);
    }
    catch (Throwable ex) {
        this.fieldValuesParser = FieldValuesParser.NONE;
        logWarning("Field value processing of @ConfigurationProperty meta-data is "
                + "not supported");
    }
}
项目:spring-boot-concourse    文件:ConfigurationMetadataAnnotationProcessor.java   
@Override
public synchronized void init(ProcessingEnvironment env) {
    super.init(env);
    this.typeUtils = new TypeUtils(env);
    this.metadataStore = new MetadataStore(env);
    this.metadataCollector = new MetadataCollector(env,
            this.metadataStore.readMetadata());
    try {
        this.fieldValuesParser = new JavaCompilerFieldValuesParser(env);
    }
    catch (Throwable ex) {
        this.fieldValuesParser = FieldValuesParser.NONE;
        logWarning("Field value processing of @ConfigurationProperty meta-data is "
                + "not supported");
    }
}
项目:contestparser    文件:ConfigurationMetadataAnnotationProcessor.java   
@Override
public synchronized void init(ProcessingEnvironment env) {
    super.init(env);
    this.typeUtils = new TypeUtils(env);
    this.metadataStore = new MetadataStore(env);
    this.metadataCollector = new MetadataCollector(env,
            this.metadataStore.readMetadata());
    try {
        this.fieldValuesParser = new JavaCompilerFieldValuesParser(env);
    }
    catch (Throwable ex) {
        this.fieldValuesParser = FieldValuesParser.NONE;
        logWarning("Field value processing of @ConfigurationProperty meta-data is "
                + "not supported");
    }
}