com.jpattern.ioc.property.ReplacerPropertyReader Maven / Gradle / Ivy
package com.jpattern.ioc.property;
/**
*
* @author Claudio Quaresima - [email protected] - 26/ott/08 11:58:49
* @version $Id: $
*/
public class ReplacerPropertyReader extends PropertyReader {
protected static final String SUFFIX ="}";
private static final String PREFIX ="${";
public String property(String aProperty) {
return evalueProperty(aProperty);
}
private String evalueProperty(String aProperty) {
if (aProperty.startsWith(PREFIX)) {
aProperty= parse(aProperty, PREFIX, SUFFIX);
}
return super.property(aProperty);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy