use of org.jboss.weld.configuration.spi.ExternalConfiguration in project wildfly by wildfly.
the class WeldDeploymentProcessor method installBootstrapConfigurationService.
private void installBootstrapConfigurationService(WeldDeployment deployment, DeploymentUnit parentDeploymentUnit) {
final boolean nonPortableMode = parentDeploymentUnit.getAttachment(WeldConfiguration.ATTACHMENT_KEY).isNonPortableMode();
final ExternalConfiguration configuration = new ExternalConfigurationBuilder().add(ConfigurationKey.NON_PORTABLE_MODE.get(), nonPortableMode).build();
deployment.getServices().add(ExternalConfiguration.class, configuration);
}
Aggregations