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

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

@ #2 XMLProperties is just a simple marker which can be part of 
ExternalResource itself (e.g. as format-enum to be extensible in the future). 
we agreed on using as few annotations as possible, because it's easier for 
users.
@ #4: -1 we should be consistent
@ #6: please start a discussion on the list and provide the whole info (e.g. 
why it just helps a bit. imo: if we do it, we should generate it with a 
maven-plugin - everything else is broken over time).
@ #10: everybody is welcome to write as many as needed. i would be happy not to 
write a single one - i just found more and more the more i looked at the code.

> 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.4#6159)

Reply via email to