Source:
<code>public void registration() { boolean useScanning = true; if (application != null) { dispatcher.getDefaultContextObjects().put(Application.class, application); ResteasyProviderFactory.getContextDataMap().put(Application.class, application); if (processApplication(application)) { useScanning = false; } } if (useScanning && scannedProviderClasses != null) { for (String provider : scannedProviderClasses) { registerProvider(provider); } } if (providerClasses != null) { for (String provider : providerClasses) { registerProvider(provider); } } if (providers != null) { for (Object provider : providers) { providerFactory.registerProviderInstance(provider); } } for (Class actualProviderClass : actualProviderClasses) { providerFactory.registerProvider(actualProviderClass); } if (useScanning && scannedJndiComponentResources != null) { for (String resource : scannedJndiComponentResources) { registerJndiComponentResource(resource); } } if (jndiComponentResources != null) { for (String resource : jndiComponentResources) { registerJndiComponentResource(resource); } } if (jndiResources != null) { for (String resource : jndiResources) { registry.addJndiResource(resource.trim()); } } if (useScanning && scannedResourceClasses != null) { for (String resource : scannedResourceClasses) { Class clazz = null; try { clazz = Thread.currentThread().getContextClassLoader().loadClass(resource.trim()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } registry.addPerRequestResource(clazz); } } if (resourceClasses != null) { for (String resource : resourceClasses) { Class clazz = null; try { clazz = Thread.currentThread().getContextClassLoader().loadClass(resource.trim()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } registry.addPerRequestResource(clazz); } } if (resources != null) { for (Object obj : resources) { registry.addSingletonResource(obj); } } for (Class actualResourceClass : actualResourceClasses) { registry.addPerRequestResource(actualResourceClass); } <START> registry.checkAmbiguousUri(); <END> for (ResourceFactory factory : resourceFactories) { registry.addResourceFactory(factory); } }</code><technical_language>@rsearls, is a reason put test processing ResourceFactories</technical_language>

Target:
public void registration() { boolean useScanning = true; if (application != null) { dispatcher.getDefaultContextObjects().put(Application.class, application); ResteasyProviderFactory.getContextDataMap().put(Application.class, application); if (processApplication(application)) { useScanning = false; } } if (useScanning && scannedProviderClasses != null) { for (String provider : scannedProviderClasses) { registerProvider(provider); } } if (providerClasses != null) { for (String provider : providerClasses) { registerProvider(provider); } } if (providers != null) { for (Object provider : providers) { providerFactory.registerProviderInstance(provider); } } for (Class actualProviderClass : actualProviderClasses) { providerFactory.registerProvider(actualProviderClass); } if (useScanning && scannedJndiComponentResources != null) { for (String resource : scannedJndiComponentResources) { registerJndiComponentResource(resource); } } if (jndiComponentResources != null) { for (String resource : jndiComponentResources) { registerJndiComponentResource(resource); } } if (jndiResources != null) { for (String resource : jndiResources) { registry.addJndiResource(resource.trim()); } } if (useScanning && scannedResourceClasses != null) { for (String resource : scannedResourceClasses) { Class clazz = null; try { clazz = Thread.currentThread().getContextClassLoader().loadClass(resource.trim()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } registry.addPerRequestResource(clazz); } } if (resourceClasses != null) { for (String resource : resourceClasses) { Class clazz = null; try { clazz = Thread.currentThread().getContextClassLoader().loadClass(resource.trim()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } registry.addPerRequestResource(clazz); } } if (resources != null) { for (Object obj : resources) { registry.addSingletonResource(obj); } } for (Class actualResourceClass : actualResourceClasses) { registry.addPerRequestResource(actualResourceClass); } for (ResourceFactory factory : resourceFactories) { registry.addResourceFactory(factory); } registry.checkAmbiguousUri(); }