|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2014 the original author or authors. |
|
|
|
|
* Copyright 2002-2015 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -30,7 +30,7 @@ import org.springframework.util.ObjectUtils; |
|
|
|
|
* consider caching the result of {@link #getPropertyNames()} to fully exploit this |
|
|
|
|
* performance opportunity. |
|
|
|
|
* |
|
|
|
|
* Most framework-provided {@code PropertySource} implementations are enumerable; |
|
|
|
|
* <p>Most framework-provided {@code PropertySource} implementations are enumerable; |
|
|
|
|
* a counter-example would be {@code JndiPropertySource} where, due to the |
|
|
|
|
* nature of JNDI it is not possible to determine all possible property names at |
|
|
|
|
* any given time; rather it is only possible to try to access a property |
|
|
|
@ -47,7 +47,6 @@ public abstract class EnumerablePropertySource<T> extends PropertySource<T> { |
|
|
|
|
super(name, source); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
|
protected EnumerablePropertySource(String name) { |
|
|
|
|
super(name); |
|
|
|
|
} |
|
|
|
|