Package org.aeonbits.owner.KrauseningConfig

Examples of org.aeonbits.owner.KrauseningConfig.KrauseningSources


  KrauseningAwarePropertiesManager(Class<? extends Config> clazz, Properties properties,
      ScheduledExecutorService scheduler, VariablesExpander expander, LoadersManager loaders, Map<?, ?>[] imports) {
    super(clazz, properties, scheduler, expander, loaders, imports);

    KrauseningSources krauseningSources = clazz.getAnnotation(KrauseningSources.class);
    if (krauseningSources == null || krauseningSources.value().length == 0) {
      throw new IllegalArgumentException("No @KrauseningSources were defined on " + clazz.getCanonicalName());
    }

    this.krauseningPropertyFileNames = Arrays.asList(krauseningSources.value());

    KrauseningMergePolicy mergePolicy = clazz.getAnnotation(KrauseningMergePolicy.class);
    this.mergePolicyType = mergePolicy != null ? mergePolicy.value()
        : KrauseningMergePolicyType.FAIL_ON_DUPLICATE_PROPERTY_KEY;
View Full Code Here

TOP

Related Classes of org.aeonbits.owner.KrauseningConfig.KrauseningSources

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.