@Override public Property getProperty(Class<? extends Object> type, String name) throws IntrospectionException { Property result = super.getProperty(type, name); if (result instanceof MissingProperty) { missingProperties.add(result.getName()); } return result; }
@Override // Print warning for unknown properties public Property getProperty(Class<?> type, String name, BeanAccess bAccess) throws IntrospectionException { if (bAccess != BeanAccess.FIELD) return super.getProperty(type, name, bAccess); Property p = super.getProperty(type, Helper.toLowerCase(name), bAccess); // Check if property was missing and notify user if necessary if ((p instanceof MissingProperty) && type != UnknownConf.class) core.getLogger().log(WARN, "Unknown configuration property: {} @ {}", name, type.getSimpleName()); return p; }