Search in sources :

Example 1 with ExternalConfiguration

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);
}
Also used : ExternalConfigurationBuilder(org.jboss.weld.configuration.spi.helpers.ExternalConfigurationBuilder) ExternalConfiguration(org.jboss.weld.configuration.spi.ExternalConfiguration)

Aggregations

ExternalConfiguration (org.jboss.weld.configuration.spi.ExternalConfiguration)1 ExternalConfigurationBuilder (org.jboss.weld.configuration.spi.helpers.ExternalConfigurationBuilder)1