Class WeldConfiguration

  • All Implemented Interfaces:

    public class WeldConfigurationextends Objectimplements Service
    Represents an immutable per-deployment Weld configuration.

    Each property may be set in three different sources (by priority in descending order):

    1. Bootstrap configuration provided by an integrator
    2. System property
    3. Properties file

    For backwards compatibility there are some obsolete sources:

    • properties files and are also loaded for some configuration keys,
    • some system properties with obsolete keys are considered

    If a configuration key is set in multiple sources (e.g. as a system property and in a file), the value from the source with higher priority is taken, other values are ignored.

    If a configuration key is set multiple times in the same source (e.g. different files) and the values are different, the container automatically detects the problem and treats it as a deployment problem.

    Unsupported configuration keys are ignored. If an invalid value is set, the container automatically detects the problem and treats it as a deployment problem.

    Martin Kouba
    See Also:
    BootstrapConfiguration, ConfigurationKey
    • Constructor Detail

      • WeldConfiguration

        public WeldConfiguration(ServiceRegistry services,                         Deployment deployment)
        bootstrapConfiguration -
        deployment -
    • Method Detail

      • getLongProperty

        public Long getLongProperty(ConfigurationKey key)
        key -
        the property for the given key
        IllegalStateException - If the property type does not match the required type
      • getProxyDumpFilePath

        public File getProxyDumpFilePath()
        the path or null if the generated bytecode should not be dumped
        See Also:
      • cleanup

        public void cleanup()
        Description copied from interface: Service
        Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
        Specified by:
        cleanup in interface Service

Copyright © 2015. All Rights Reserved.

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