[ 
https://issues.apache.org/jira/browse/DELTASPIKE-399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857439#comment-13857439
 ] 

Gerhard Petracek commented on DELTASPIKE-399:
---------------------------------------------

@latest commit:
the 'c' in package org.apache.deltaspike.core.api.resour>c<eloader; is still 
missing
please use the logger instead of System.out.println
FileResourceTest fails on as7/tomee/...
#closeInputStream swallows possible exceptions

minor:
imo it's easier for users to have an useful default for 'storage' 
(ClasspathStorage.class)
i'm not sure about the reason for the latest split (#readStream + 
#readProperties - however, that's more a matter of taste)

> Incorporate Solder's ResourceLoader features into DeltaSpike
> ------------------------------------------------------------
>
>                 Key: DELTASPIKE-399
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-399
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Aaron Siri
>            Assignee: John D. Ament
>            Priority: Minor
>             Fix For: 0.6
>
>
> Seam 3's Solder module had some nice resource loading functionality within 
> the org.jboss.solder.resourceLoader packages.  With it you could do the 
> following:
> // Load a properties file
> @Inject @Resource("app.properties")
> private Properties appProperties;
> or:
> @Inject
> private ResourceProvider resourceProvider
> public Properties getHostProperties() {
>    String hostname = java.net.InetAddress.getLocalHost().getHostName();
>    return resourceProvider.loadPropertiesBundle(hostname + ".properties");
> }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to