All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.andromedaioc.bean.param.PropertyValueParser Maven / Gradle / Ivy

The newest version!
package net.sf.andromedaioc.bean.param;

import net.sf.andromedaioc.model.beans.ValueModel;
import net.sf.andromedaioc.resource.ResourceProvider;

public class PropertyValueParser extends AbstractConstantValueParser {

    private final ValueModel valueModel;
    private final ResourceProvider resourceProvider;

    public PropertyValueParser(ValueModel valueModel, Class type, ResourceProvider resourceProvider) {
        super(type);
        this.valueModel = valueModel;
        this.resourceProvider = resourceProvider;
    }

    @Override
    protected Object getValue() {
        return resourceProvider.getProperty(valueModel.getValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy