@Sources({"file:src/main/resources/Amsterdam.properties" })
public interface AmsterdamProperties extends Config {
@Key("price.update.time")
public String priceUpdateTime();
@Sources({"file:src/main/resources/Barcelona.properties" })
public interface BarcelonaProperties extends Config {
@Key("price.update.time")
public String priceUpdateTime();
so in this example, i have 2x priceUpdateTime();
and i would like to have a parent interface which has priceUpdateTime() but for sure, loaded should it be then from amsterdan or barcelona properties.
how can i do this? would it be enough to write a parent class which is inheriting from config, having the parameter priceUpdateTime but no @sources attached?
thx
alex
how can i do this? would it be enough to write a parent class which is inheriting from config, having the parameter priceUpdateTime but no @sources attached?