Skip to content

Commit

Permalink
WELD-1514: Drop deployment services
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Briskar authored and jharting committed Oct 22, 2013
1 parent b7d3d1f commit d88e708
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions impl/src/main/java/org/jboss/weld/bootstrap/WeldStartup.java
Expand Up @@ -215,29 +215,13 @@ public WeldRuntime startContainer(String contextId, Environment environment, Dep

this.deployment = deployment;
addImplementationServices(registry);

ServiceRegistry deploymentServices = new SimpleServiceRegistry();
deploymentServices.add(ClassTransformer.class, registry.get(ClassTransformer.class));
deploymentServices.add(SlimAnnotatedTypeStore.class, registry.get(SlimAnnotatedTypeStore.class));
deploymentServices.add(MetaAnnotationStore.class, registry.get(MetaAnnotationStore.class));
deploymentServices.add(TypeStore.class, registry.get(TypeStore.class));
deploymentServices.add(ContextualStore.class, registry.get(ContextualStore.class));
deploymentServices.add(CurrentInjectionPoint.class, registry.get(CurrentInjectionPoint.class));
deploymentServices.add(GlobalObserverNotifierService.class, registry.get(GlobalObserverNotifierService.class));
deploymentServices.add(ContainerLifecycleEvents.class, registry.get(ContainerLifecycleEvents.class));
deploymentServices.add(SpecializationAndEnablementRegistry.class, registry.get(SpecializationAndEnablementRegistry.class));
deploymentServices.add(ReflectionCache.class, registry.get(ReflectionCache.class));
deploymentServices.add(GlobalEnablementBuilder.class, registry.get(GlobalEnablementBuilder.class));
deploymentServices.add(HttpContextActivationFilter.class, registry.get(HttpContextActivationFilter.class));
deploymentServices.add(MissingDependenciesRegistry.class, registry.get(MissingDependenciesRegistry.class));

this.environment = environment;
this.deploymentManager = BeanManagerImpl.newRootManager(contextId, "deployment", deploymentServices);
this.deploymentManager = BeanManagerImpl.newRootManager(contextId, "deployment", registry);

Container.initialize(contextId, deploymentManager, ServiceRegistries.unmodifiableServiceRegistry(deployment.getServices()));
getContainer().setState(ContainerState.STARTING);

this.contexts = createContexts(deploymentServices);
this.contexts = createContexts(registry);

this.bdaMapping = new BeanDeploymentArchiveMapping();
this.deploymentVisitor = new DeploymentVisitor(deploymentManager, environment, deployment, contexts, bdaMapping);
Expand Down

0 comments on commit d88e708

Please sign in to comment.