Enum ConfigurationKey

    • Enum Constant Detail


        public static final ConfigurationKey CONCURRENT_DEPLOYMENT
        Indicates whether ConcurrentDeployer and ConcurrentValidator should be enabled. If enabled, ConcurrentDeployer and ConcurrentValidator execute their subtasks using ExecutorServices which can be configured separately. Otherwise, single-threaded version of Deployer and Validator are used. By default, concurrent deployment is enabled.

        public static final ConfigurationKey PRELOADER_THREAD_POOL_SIZE
        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)).

        public static final ConfigurationKey NON_PORTABLE_MODE
        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.

        public static final ConfigurationKey EXECUTOR_THREAD_POOL_SIZE
        The number of threads to be used for bean loading and deployment.

        public static final ConfigurationKey EXECUTOR_THREAD_POOL_DEBUG
        If set to true, debug timing information is printed to the standard output.

        public static final ConfigurationKey EXECUTOR_THREAD_POOL_TYPE
        The type of the thread pool. Possible values are: FIXED, FIXED_TIMEOUT, NONE, SINGLE_THREAD.

        public static final ConfigurationKey EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME
        Keep-alive time in seconds. Passed to the constructor of the ThreadPoolExecutor class, maximum time that excess idle threads will wait for new tasks before terminating.

        public static final ConfigurationKey RESOLUTION_CACHE_SIZE
        Weld caches resolved injection points in order to resolve them faster in the future. There exists a separate type safe resolver for beans, decorators, disposers, interceptors and observers. Each of them stores resolved injection points in its cache, which maximum size is bounded by a default value (common to all of them).
        See Also:
      • PROXY_DUMP

        public static final ConfigurationKey PROXY_DUMP
        For debug purposes, it's possible to dump the generated bytecode of proxies and subclasses.

        public static final ConfigurationKey RELAXED_CONSTRUCTION
        Weld supports a non-standard workaround to be able to create client proxies for Java types that cannot be proxied by the container, using non-portable JVM APIs.

        public static final ConfigurationKey PROXY_INSTANTIATOR
        Allows ProxyInstantiator to be selected explicitly. This is only intended for testing purposes and should never be set by an application.

        public static final ConfigurationKey PROXY_UNSAFE
        Deprecated. this option is deprecated. RELAXED_CONSTRUCTION should be used instead
        Weld supports a non-standard workaround to be able to create client proxies for Java types that cannot be proxied by the container, using non-portable JVM APIs.

        public static final ConfigurationKey DISABLE_XML_VALIDATION
        XML descriptor validation is enabled by default.

        public static final ConfigurationKey INJECTABLE_REFERENCE_OPTIMIZATION
        For certain combinations of scopes, the container is permitted to optimize an injectable reference lookup. The optimization is disabled by default as it does not match the AlterableContext contract.

        public static final ConfigurationKey PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE
        A regular expression. If a non-empty string and the base type for an AnnotatedType or a declaring type for an AnnotatedMember matches this pattern the type is excluded from monitoring, i.e. the invocation monitor interceptor is not associated.

        public static final ConfigurationKey PROBE_INVOCATION_MONITOR_SKIP_JAVABEAN_PROPERTIES
        If set to true the JavaBean accessor methods are not monitored.

        public static final ConfigurationKey PROBE_EVENT_MONITOR_EXCLUDE_TYPE
        A regular expression. If a non-empty string and the runtime class of the event object matches this pattern the event is excluded from monitoring.

        public static final ConfigurationKey BEAN_IDENTIFIER_INDEX_OPTIMIZATION
        This optimization is used to reduce the HTTP session replication overhead. However, the inconsistency detection mechanism may cause problems in some development environments.

        public static final ConfigurationKey PROBE_EMBED_INFO_SNIPPET
        If set to true an informative HTML snippet will be added to every response with Content-Type of value text/html.

        public static final ConfigurationKey DEFAULT_BEAN_NAMES_FOLLOW_JAVABEAN_RULES
        If set to true the default name follows the rules from the original JavaBean specification. Otherwise (default, portable solution), the CDI specification requirements are met.
        See Also:

        public static final ConfigurationKey CONTEXT_ATTRIBUTES_LAZY_FETCH
        If set to true, the attributes should be fetched lazily from the backing store for some contexts (e.g. attributes of an HTTP session for a session context).

        public static final ConfigurationKey PROBE_JMX_SUPPORT
        If set to true one or more MBean components may be registered so that it is possible to use JMX to access the Probe development tool data.

        public static final ConfigurationKey PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS
        If set to true all the container lifecycle events are monitored during bootstrap. Note that this feature has negative impact on the bootstrap performance.
    • Method Detail

      • values

        public static ConfigurationKey[] values()
        Returns an array containing the constants of this enum type, inthe order they are declared. This method may be used to iterateover the constants as follows:
        for (ConfigurationKey c : ConfigurationKey.values())    System.out.println(c);
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConfigurationKey valueOf(String name)
        Returns the enum constant of this type with the specified name.The string must match exactly an identifier used to declare anenum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • get

        public String get()
        the string representation of the key
      • getDefaultValue

        public Object getDefaultValue()
        the default value
      • isValidValue

        public boolean isValidValue(Object value)
        value -
        true if the given value corresponds to the type of the default value, false otherwise
      • isValidValueType

        public boolean isValidValueType(Class<?> valueType)
        valueType -
        true if the given value type corresponds to the type of the default value, false otherwise
      • convertValue

        public Object convertValue(String value)
        value -
        the converted value
      • isValueTypeSupported

        public static boolean isValueTypeSupported(Class<?> valueType)
        valueType -
        true if the given value type is supported, false otherwise
      • fromString

        public static ConfigurationKey fromString(String from)
        from -
        the key with the given value, or null if no such exists

Copyright © 2015. All Rights Reserved.

Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14