You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/07/05 15:44:00 UTC
[jira] [Closed] (COLLECTIONS-664) Add class FileProperties to load
file name directly
[ https://issues.apache.org/jira/browse/COLLECTIONS-664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed COLLECTIONS-664.
------------------------------------
Resolution: Fixed
Fix Version/s: 4.4
This feature is provided in version 4.4 in:
- org.apache.commons.collections4.properties.SortedProperties
- org.apache.commons.collections4.properties.SortedPropertiesFactory
> Add class FileProperties to load file name directly
> ---------------------------------------------------
>
> Key: COLLECTIONS-664
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-664
> Project: Commons Collections
> Issue Type: New Feature
> Reporter: zhangminglei
> Priority: Major
> Fix For: 4.4
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> For example, In some interface, needs we have a {{java.util.Properties}} as a parameter. In common case, we have different profiles in maven under different environments that we can random selection. And use the current classloader, usually belongs to AppclassLoader to get it's inputstream. I propose we should add a functionality that can directly read a file name and return a {{java.util.Properties}} as a return value.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)