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

Gerhard Petracek edited comment on DELTASPIKE-399 at 12/28/13 3:33 PM:
-----------------------------------------------------------------------

@john: we can change it once owb 1.2.2 is released (but not the enum-value for 
1.2.x), since it doesn't need to implement this cdi 1.1 rule.

@christian:
if we just test the stream in the producer and return a custom InputStream as 
proxy instead (which knows the path and opens a real stream lazily), we could 
reduce the impact.


was (Author: gpetracek):
@john: we can change it once owb 1.2.2 is released, since it doesn't need to 
implement this cdi 1.1 rule.

@christian:
if we just test the stream in the producer and return a custom InputStream as 
proxy instead (which knows the path and opens a real stream lazily), we could 
reduce the impact.

> 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
>
>         Attachments: DELTASPIKE-399_merged_interface.patch
>
>
> 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