fix:fix javadoc.

pull/721/head
wulingxiao 3 years ago
parent 525529da6c
commit 42e410203a

@ -81,6 +81,7 @@ public final class PolarisConfigFilePuller {
*
* @param compositePropertySource compositePropertySource
* @param activeProfiles activeProfiles
* @param defaultProfiles defaultProfiles
* @param serviceName serviceName
*/
public void initInternalConfigFiles(CompositePropertySource compositePropertySource, String[] activeProfiles,

@ -52,7 +52,6 @@ import static org.springframework.boot.context.config.ConfigData.Option.PROFILE_
* Load {@link ConfigData} via {@link PolarisConfigDataLoader}
*
* @author wlx
* @date 2022/7/5 11:14 PM
*/
public class PolarisConfigDataLoader implements ConfigDataLoader<PolarisConfigDataResource> {

@ -30,7 +30,6 @@ import org.springframework.boot.context.config.Profiles;
* A polaris configData resource from which {@link ConfigData} can be loaded.
*
* @author wlx
* @date 2022/7/5 11:13 PM
*/
public class PolarisConfigDataResource extends ConfigDataResource {

@ -52,7 +52,7 @@ public class PlaceholderHelper {
* @param beanFactory beanFactory
* @param beanName beanName
* @param placeholder placeholder
* @return "${somePropertyValue}" -> "the actual property value"
* @return "${somePropertyValue}" -&gt; "the actual property value"
*/
public Object resolvePropertyValue(ConfigurableBeanFactory beanFactory, String beanName, String placeholder) {
// resolve string value
@ -77,16 +77,16 @@ public class PlaceholderHelper {
}
/**
*
* @param propertyString propertyString
* @return
* Extract keys from placeholder, e.g.
* <li>${some.key} => "some.key"</li>
* <li>${some.key:${some.other.key:100}} => "some.key", "some.other.key"</li>
* <li>${${some.key}} => "some.key"</li>
* <li>${${some.key:other.key}} => "some.key"</li>
* <li>${${some.key}:${another.key}} => "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} => "some.key", "another.key"</li>
* @return Extract keys from placeholder, e.g.
* <ul>
* <li>${some.key} =&gt; "some.key"</li>
* <li>${some.key:${some.other.key:100}} =&gt; "some.key", "some.other.key"</li>
* <li>${${some.key}} =&gt; "some.key"</li>
* <li>${${some.key:other.key}} =&gt; "some.key"</li>
* <li>${${some.key}:${another.key}} =&gt; "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} =&gt; "some.key", "another.key"</li>
* </ul>
*/
public Set<String> extractPlaceholderKeys(String propertyString) {
Set<String> placeholderKeys = Sets.newHashSet();

@ -5,7 +5,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author wlx
* @date 2022/7/6 9:15 PM
*/
@SpringBootApplication
public class PolarisConfigDataExampleApplication {

Loading…
Cancel
Save