Skip to content

Commit 511e933

Browse files
committed
class loader fix
plugin.properties file needs to be loaded by plugin class loader not api class loader. AbstractProcessPluginDefinition is loaded by api class loader while plugin specific extending class is loaded by the process plugin class loader where the plugin.properties file is available.
1 parent b0b44f0 commit 511e933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsf-bpe/dsf-bpe-process-api-v2/src/main/java/dev/dsf/bpe/v2/AbstractProcessPluginDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public abstract class AbstractProcessPluginDefinition implements ProcessPluginDe
7373

7474
public AbstractProcessPluginDefinition()
7575
{
76-
InputStream in = AbstractProcessPluginDefinition.class.getClassLoader().getResourceAsStream(PROPERTIES_FILE);
76+
InputStream in = getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE);
7777
if (in == null)
7878
{
7979
logger.warn("{} file not found in root folder", PROPERTIES_FILE);

0 commit comments

Comments
 (0)