Use PropertyEnvironment; it’s the public API. The only methods not exposed by 
it are internal ones like reload which are used by some tests.

> On Oct 9, 2023, at 6:37 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote:
> 
> 
> 
>> On Oct 9, 2023, at 2:14 PM, Piotr P. Karwasz <piotr.karw...@gmail.com> wrote:
>> 
>> On Mon, 9 Oct 2023 at 20:57, Ralph Goers <ralph.go...@dslextreme.com> wrote:
>>> We cannot put users in a position where they cannot upgrade until all their 
>>> dependencies do.
>> 
>> I agree, at work I still had a lot of libraries that depended on
>> Commons Lang 2, although
>> 
>>> Note that Spring Boot builds with Log4j 2.x. It needs access to 
>>> PerformanceSensitive, PropertiesUtil, and PropertySource.
>> 
>> I would really prefer not to export `PropertiesUtil`, but at least we
>> can migrate many other internal classes.
> 
> Unfortunately, the way PropertiesUtil was implemented makes it impossible to 
> make private. Lots of things need access to properties.
> 
> Ralph
> 

Reply via email to