if (applicationConfig.isScanProviders() || applicationConfig.isScanResources())
{
log.debug("scanning all classes for JAX-RS annotations");
DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
AnnotationDeploymentHandler handler =
(AnnotationDeploymentHandler) deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);
annotatedProviderClasses = handler.getClassMap().get(javax.ws.rs.ext.Provider.class.getName());
annotatedResourceClasses = handler.getClassMap().get(javax.ws.rs.Path.class.getName());
}
log.debug("finding all Seam component classes");
Map<Class, Component> seamComponents = new HashMap<Class, Component>();
String[] applicationContextNames = Contexts.getApplicationContext().getNames();