AttributeMetadata attribute = configurationMetadata.getAttributes().get(attributeName); if (attribute != null && attribute.getInjectionPoint() != null) { String propertyName = attribute.getInjectionPoint().getProperty(); if (!prefix.isEmpty()) { propertyName = prefix + "." + propertyName;
public void addInjectionPoint(InjectionPointMetaData injectionPointMetaData) { requireNonNull(injectionPointMetaData); if (injectionPointMetaData.isLegacy()) { this.legacyInjectionPoints.add(injectionPointMetaData); return; } if (this.injectionPoint != null) { throw Problems.exceptionFor("Trying to set current property twice: '%s' on method [%s] and '%s' on method [%s]", this.injectionPoint.getProperty(), this.injectionPoint.getSetter().toGenericString(), injectionPointMetaData.getProperty(), injectionPointMetaData.getSetter().toGenericString()); } this.injectionPoint = injectionPointMetaData; }
AttributeMetadata attribute = configurationMetadata.getAttributes().get(attributeName); if (attribute != null && attribute.getInjectionPoint() != null) { String propertyName = attribute.getInjectionPoint().getProperty(); if (!prefix.isEmpty()) { propertyName = prefix + propertyName;
AttributeMetadata attribute = configurationMetadata.getAttributes().get(attributeName); if (attribute != null && attribute.getInjectionPoint() != null) { String propertyName = attribute.getInjectionPoint().getProperty(); if (!prefix.isEmpty()) { propertyName = prefix + propertyName;
String operativeValue = null; if (operativeInjectionPoint != null) { operativeName = prefix + operativeInjectionPoint.getProperty(); operativeValue = properties.get(operativeName); String fullName = prefix + injectionPoint.getProperty(); String value = properties.get(fullName); String printableValue = value; String replacement = "deprecated."; if (attribute.getInjectionPoint() != null) { replacement = format("replaced. Use '%s' instead.", prefix + attribute.getInjectionPoint().getProperty());
String operativeValue = null; if (operativeInjectionPoint != null) { operativeName = prefix + operativeInjectionPoint.getProperty(); operativeValue = properties.get(operativeName); String fullName = prefix + injectionPoint.getProperty(); String value = properties.get(fullName); String printableValue = value; String replacement = "deprecated."; if (attribute.getInjectionPoint() != null) { replacement = format("replaced. Use '%s' instead.", prefix + attribute.getInjectionPoint().getProperty());
if (attribute.getInjectionPoint().getProperty() != null) { nonDeprecatedAttributes.add(attribute.getName());
if (attribute.getInjectionPoint().getProperty() != null) { nonDeprecatedAttributes.add(attribute.getName());
for (AttributeMetadata attribute : metadata.getAttributes().values()) { for (ConfigurationMetadata.InjectionPointMetaData deprecated : attribute.getLegacyInjectionPoints()) { knownDeprecatedProperties.add(deprecated.getProperty());
builder.addInjectionPoint(InjectionPointMetaData.newCurrent(configClass, propertyName, configMethod)); if (!injectionPoint.getSetter().isAnnotationPresent(Config.class) && !injectionPoint.getSetter().isAnnotationPresent(Deprecated.class)) { problems.addWarning("Replaced @LegacyConfig method [%s] should be @Deprecated", injectionPoint.getSetter().toGenericString());
for (AttributeMetadata attribute : metadata.getAttributes().values()) { for (ConfigurationMetadata.InjectionPointMetaData deprecated : attribute.getLegacyInjectionPoints()) { knownDeprecatedProperties.add(deprecated.getProperty());
for (AttributeMetadata attribute : metadata.getAttributes().values()) { for (ConfigurationMetadata.InjectionPointMetaData deprecated : attribute.getLegacyInjectionPoints()) { knownDeprecatedProperties.add(deprecated.getProperty());
Set<Method> validSetterMethods = new HashSet<>(); for (AttributeMetadata attribute : metadata.getAttributes().values()) { if (attribute.getInjectionPoint().getProperty() != null) { validSetterMethods.add(attribute.getInjectionPoint().getSetter()); if (invokedMethods.contains(attribute.getInjectionPoint().getSetter())) { if (attribute.getInjectionPoint().getProperty() != null) { Object value = invoke(config, attribute.getGetter()); attributeValues.put(attribute.getName(), value);
builder.addInjectionPoint(InjectionPointMetaData.newCurrent(configClass, propertyName, configMethod)); if (!injectionPoint.getSetter().isAnnotationPresent(Config.class) && !injectionPoint.getSetter().isAnnotationPresent(Deprecated.class)) { problems.addWarning("Replaced @LegacyConfig method [%s] should be @Deprecated", injectionPoint.getSetter().toGenericString());
if (attribute.getInjectionPoint().getProperty() != null) { nonDeprecatedAttributes.add(attribute.getName());