The portlet should be able to read a property from a configuration file, i.e., our standard qbic-ext.properties. The value of this property should be the path from which the portlet should load its configuration file. If the property is not present, current behavior (i.e., load a default config.yaml that is present as a resource in the classpath) should be kept.
Right now the portlet loads its configuration file,
config.yaml
, as a resource from the classpath.When the portlet (class
life.qbic.portal.portlet.StatisticsPortlet
) is initialized, it provides a default location:Which in the end will be loaded by the parser (class
life.qbic.portal.io.YAMLParser
) as a resource from the classpath:The portlet should be able to read a property from a configuration file, i.e., our standard
qbic-ext.properties
. The value of this property should be the path from which the portlet should load its configuration file. If the property is not present, current behavior (i.e., load a defaultconfig.yaml
that is present as a resource in the classpath) should be kept.