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

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

btw. i don't see the reason for keeping the info at all.

if you have
@ExternalResource("xyz.properties")
and
@ExternalResource("xyz.xml")
it's pretty clear and the producer can be smart enough to handle it correctly 
(without an additional annotation/enum/string-value/...).

@"most is fixed already":
i don't think so (maybe you haven't pushed everything) - esp.:
@ #1 you saw on the mailing list that we should keep the approach we have (i 
never said that i like it, but it's more important to be consistent)
@ #3 also still not aligned with the rest of ds (i would also prefer 
"priority", but it's more important to be consistent)
@ #6 there is still no agreement, but doing it manually (for all parts of ds) 
is just broken over time
@ #8 still not fixed and a clear issue
@ #9 there is still a typo: resoureloader (instead of resourceloader)

> 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