I note that in a CDI SE environment, the three {{ ResourceLoader ResourceLoaders }} s will be, by default: 1. {{WeldResourceLoader}} (created by the {{SeContainerInitializer}} implementation and not overridable) 2. {{WeldClasspathResourceLoader}} (created by {{AdditionalServiceLoader#getResourceLoaders()}}) 3. {{DefaultResourceLoader}} (created by {{AdditionalServiceLoader#getResourceLoaders()}})
Could we detect this situation and simply use the {{WeldResourceLoader}} in that case? |
|