Make StandardConfigDataResource.getResource public

Update `StandardConfigDataResource`  to make the `getResource()` method
public so that it can be used by Spring Cloud.

Closes gh-24504
This commit is contained in:
Phillip Webb 2020-12-16 16:49:39 -08:00
parent b2abc8ff3f
commit aeaefbee33
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ public class StandardConfigDataResource extends ConfigDataResource {
return this.reference;
}
Resource getResource() {
/**
* Return the underlying Spring {@link Resource} being loaded.
* @return the underlying resource
* @since 2.4.2
*/
public Resource getResource() {
return this.resource;
}