The resourceType when it is loaded it initialized the TYPES map reading all the properties files that are located in this location: /org/switchyard/common/io/resource/resourceType.properties
This is done in this common class that belongs to switchyard core.
https://github.com/dvirgiln/core/blob/master/common/core/src/main/java/org/switchyard/common/io/resource/ResourceType.java#L179
Normally it should return a list with all the URLs. In the case of the knowledge loading it should load 2 files:
https://github.com/dvirgiln/core/blob/master/common/core/src/main/resources/org/switchyard/common/io/resource/resourceType.properties
https://github.com/dvirgiln/components/blob/master/common/knowledge/src/main/resources/org/switchyard/common/io/resource/resourceType.properties
The problem in karaf is that it is only returning a List with one item, the first properties file found.
|