I'm struggling a bit to get facet detection working from my plugin.
What I want to do is auto-detect my facet type when a file with a certain name is present in the module.
I think I've implemented all the necessary classes (adding a facet to a module works, configuration through the editor tab works, persisting/loading the configuration works), but I'm not sure what the parameters of the registerUniversalDetector(fileType, virtualFileFilter, facetDetector) method of the FacetDetectorRegistry do exactly. I've passed the file type of my specific file and a filter on the file name I want to lookup. And I implemented a detector that just looks at the configurations and returns an existing one if present and a default config otherwise.
Also, the detectFacet method of the FacetDetector takes a 'source' parameter; what is that exactly?
Thanks in advance!