Skip to content

Commit

Permalink
Using ConfigurationKey enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 18, 2017
1 parent f8d25cb commit 5e28910
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.jboss.forge.furnace.lifecycle.ControlType;
import org.jboss.forge.furnace.spi.ServiceRegistry;
import org.jboss.forge.furnace.util.Assert;
import org.jboss.weld.config.ConfigurationKey;
import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
import org.jboss.weld.resources.spi.ResourceLoader;
Expand Down Expand Up @@ -74,8 +75,9 @@ public void start(Addon addon) throws Exception

weldContainer = new Weld(addon.getId().getName()).setResourceLoader(resourceLoader)
.addExtension(serviceExtension).addExtension(registrantExtension)
.property("org.jboss.weld.bootstrap.preloaderThreadPoolSize", 0)
.property("org.jboss.weld.bootstrap.concurrentDeployment", false).initialize();
.property(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE.get(), 0)
.property(ConfigurationKey.CONCURRENT_DEPLOYMENT.get(), false)
.initialize();

manager = weldContainer.getBeanManager();
Assert.notNull(manager, "BeanManager was null");
Expand Down

0 comments on commit 5e28910

Please sign in to comment.