You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/05 08:15:00 UTC

[jira] [Work logged] (COLLECTIONS-664) Add class FileProperties to load file name directly

     [ https://issues.apache.org/jira/browse/COLLECTIONS-664?focusedWorklogId=237360&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-237360 ]

ASF GitHub Bot logged work on COLLECTIONS-664:
----------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/May/19 08:14
            Start Date: 05/May/19 08:14
    Worklog Time Spent: 10m 
      Work Description: kinow commented on issue #33: [COLLECTIONS-664] Add a class that extend a load method which accept …
URL: https://github.com/apache/commons-collections/pull/33#issuecomment-489402251
 
 
   Just had a play with Commons Configuration, and they have some code for handling loading Properties (I think I used version 1, version 2 has builders...).
   
   I suspect this feature would at their `PropertiesConfiguration`, and if it doesn't do the same as what is suggested here, then implement a new PropertiesReader I think (near the bottom of `PropertiesConfiguration`, there are some readers in there). Or maybe through some other part of Commons Configuration API.
   
   Haven't looked at the issues in Commons Configuration, but maybe @garydgregory 's suggestion of supporting `Path`'s too could be a good enhancement to this proposal. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 237360)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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
>          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)