@@ -0,0 +1,1816 @@
+/*%0A * Copyright 2012-2014 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage net.nicoll.boot.metadata;%0A%0Aimport java.io.IOException;%0A%0Aimport org.springframework.configurationmetadata.ConfigurationMetadataProperty;%0Aimport org.springframework.configurationmetadata.ConfigurationMetadataRepository;%0Aimport org.springframework.util.StringUtils;%0A%0A/**%0A *%0A * @author Stephane Nicoll%0A */%0Apublic class MetadataHintFormatter extends AbstractMetadataFormatter %7B%0A%0A%09@Override%0A%09public String formatMetadata(ConfigurationMetadataRepository repository) throws IOException %7B%0A%09%09StringBuilder out = new StringBuilder();%0A%09%09for (ConfigurationMetadataProperty property : repository.getAllProperties().values()) %7B%0A%09%09%09if (hasDocumentationHints(property)) %7B%0A%09%09%09%09out.append(%22Hints - %22).append(property.getId()).append(%22 (%22)%0A%09%09%09%09%09%09.append(property.getDescription()).append(%22)%22).append(NEW_LINE);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return out.toString();%0A%09%7D%0A%0A%09private boolean hasDocumentationHints(ConfigurationMetadataProperty property) %7B%0A%09%09String description = property.getDescription();%0A%09%09if (!StringUtils.hasText(description)) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09String content = description.toLowerCase();%0A%09%09if (content.contains(%22possible values%22) %7C%7C content.contains(%22can be%22)) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%7D%0A

Add simple hint detector