Examples of ConfigurationVariable


Examples of com.netflix.governator.annotations.ConfigurationVariable

         * Any field annotated with @ConfigurationVariable will be available for
         * replacement when generating property names
         */
        Map<String, String> overrides = Maps.newHashMap();
        for ( Field variableField : methods.fieldsFor(ConfigurationVariable.class)) {
            ConfigurationVariable annot = variableField.getAnnotation(ConfigurationVariable.class);
            if (annot != null) {
                overrides.put(annot.name(), variableField.get(obj).toString());
            }
        }
       
        /**
         * Map a configuration to any field with @Configuration annotation
View Full Code Here

Examples of org.adbcj.postgresql.codec.ConfigurationVariable

  private AbstractBackendMessage decodeParameterStatus(DecoderInputStream input) throws IOException {
    Charset charset = connectionState.getBackendCharset();
    String name = input.readString(charset);
    String value = input.readString(charset);
    ConfigurationVariable cv = ConfigurationVariable.fromName(name);
    if (cv == null) {
      logger.warn("No ConfigurationVariable entry for {}", name);
    }
    return new ParameterMessage(cv, value);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.