Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.weld.bootstrap.spi;
This service is deprecated. Use org.jboss.weld.configuration.spi.ExternalConfiguration instead.

Author(s):
Jozef Hartinger
public interface BootstrapConfiguration extends Service {

    
Indicates whether ConcurrentDeployer and ConcurrentValidator should be enabled. If enabled, ConcurrentDeployer and ConcurrentValidator execute their subtasks using org.jboss.weld.manager.api.ExecutorServices which can be configured separately. Otherwise, single-threaded version of Deployer and Validator are used. By default, concurrent deployment is enabled.

Deprecated:
this method is deprecated. Use org.jboss.weld.configuration.spi.ExternalConfiguration with org.jboss.weld.bootstrap.concurrentDeployment as key instead
Returns:
whether ConcurrentDeployer and ConcurrentValidator should be enabled.
    boolean isConcurrentDeploymentEnabled();

    
The number of threads used by ContainerLifecycleEventPreloader. The ContainerLifecycleEventPreloader allows observer methods for container lifecycle events to be resolved upfront while the deployment is waiting for classloader or reflection API. ContainerLifecycleEventPreloader has its own thread pool whose size is configured by this property. If set to 0, ContainerLifecycleEventPreloader is not installed. If not specified, the value is set to Math.max(1, Runtime.getRuntime().availableProcessors() - 1)).

Deprecated:
this method is deprecated. Use org.jboss.weld.configuration.spi.ExternalConfiguration with org.jboss.weld.bootstrap.preloaderThreadPoolSize as key instead
Returns:
the number of threads used by ContainerLifecycleEventPreloader.
    int getPreloaderThreadPoolSize();

    
Allows an integrator to enable the non-portable mode. Non-portable mode is suggested by the specification to overcome problems with legacy applications not using CDI SPI properly. The non-portable mode is disabled by default.

Deprecated:
this method is deprecated. Use org.jboss.weld.configuration.spi.ExternalConfiguration with org.jboss.weld.nonPortableMode as key instead
Returns:
true if non-portable mode should be enabled.
See also:
BeanManager
    boolean isNonPortableModeEnabled();
New to GrepCode? Check out our FAQ X